Esempio n. 1
0
 public static TableKey[] KeysByPrefix(this LightningPersistence lmdb, Table table, TableKey prefix, uint page, uint pageSize) =>
 lmdb.Read(txn => txn.KeysByPrefix(table, prefix, page, pageSize).ToArray());
Esempio n. 2
0
 public static Task <bool> AddOrUpdate(this LightningPersistence lmdb, Table table, TableKey key, TableValue value, bool requiresIsolation = false) =>
 lmdb.WriteAsync(txn => txn.AddOrUpdate(table, key, value), requiresIsolation);
Esempio n. 3
0
 public static bool ContainsKey(this LightningPersistence lmdb, Table table, TableKey key) => lmdb.Read(txn => txn.ContainsKey(table, key));