LogKeyStore<K, V> class Null safety

Keystore represents a data store like a database which can store mapping between keys and values.

Constructors

LogKeyStore()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(V value) 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. [...]
delete(dynamic expiredKeys) → void
Removes the keys from storage. @param expiredKeys delete the expiredKeys from the storage
entriesCount() int
Returns the total number of keys in storage. @return int Returns the total number of keys.
get(K key) Future<V>
Retrieves a Future value for the key passed from the key store. [...]
getExpired(int expiryInDays) Future<List>
Returns the list of expired keys @param expiryInDays @return List
getFirstNEntries(int N) List
Returns the first 'N' keys of the log instance. @param N : Fetches first 'N' entries @return List : Returns the list of keys.
getSize() int
Returns the size of the storage @return int Returns the storage size in integer type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
remove(K key) Future
Removes the mapping for a key from this key store if it is present [...]
toString() String
A string representation of this object. [...]
inherited
update(K key, V value) Future

Operators

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