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

hashCode int
The hash code for this object.
no setterinherited
name String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 data value 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