LogKeyStore<K, V> class abstract

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

Implementers

Constructors

LogKeyStore.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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.
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 nonexistent method or property is accessed.
inherited
remove(K key) Future
Removes the mapping for a key from this key store if it is present
removeAll(List<K> deleteKeysList) Future<void>
Removes the list of keys from storage.
toString() String
A string representation of this object.
inherited
update(K key, V value) Future
Updates the existing key with the given value

Operators

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