WritableKeystore<K, V> class abstract interface

WritableKeystore represents a data store like a database that allows CRUD operations on the values belonging to the keys

Implemented types
Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
postRemoveHooks List<Future Function(String key, {required bool skipCommit})>
no setter
preRemoveHooks List<Future Function(String key, {required bool skipCommit})>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create(K key, V value, {bool skipCommit = false}) Future
If the specified key is not already associated with a value (or is mapped to null) associates it with the given value and returns null, else returns the current value.
get(K key) Future<V>?
Retrieves a Future value for the key passed from the key store.
inherited
initialize() Future<void>
Subclasses should put any necessary post-construction async initialization in this method
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(K key, V value, {bool skipCommit = false}) Future
Associates the specified value with the specified key. If the key store previously contained a mapping for the key, the old value is replaced by the specified value.
remove(K key, {bool skipCommit = false}) Future
Removes the mapping for a key from this key store if it is present
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited