KvDB class
KvDB keep a pointer of native FlKv
Constructors
- KvDB.open(String path)
-
Open a db by
path
factory - KvDB.openInMemory()
-
Open a db in memory with name
factory
Properties
Methods
-
close(
) → void -
Close the db. when this method called,
the pointer
_flKv
will be released and should not use it again Calling close more than once is allowed, and will have no further effect. -
delete(
Uint8List key) → dynamic -
Delete by
key
-
flush(
) → bool - Flush the changes from memory to disk
-
get(
Uint8List key) → Uint8List? -
Get value by
key
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
Uint8List key, Uint8List value) → bool -
Put
key
with datavalue
into the db -
putBatch(
KvBatch batch, bool sync) → bool -
Batch put
sync
if sync will auto call flush -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited