CacheStore class abstract
Constructors
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
-
clear(
) → Future< void> - Clears all cache entries
-
delete(
String key) → Future< void> - Deletes the cache entry for the given key
-
getAllEntries(
) → Future< Map< String, String> > - Returns all serialized entries currently in storage (for initialization)
-
getAllKeys(
) → Future< List< String> > - Returns all stored keys
-
getKeySize(
String key) → Future< int> - Returns the size in bytes of a specific key, returns 0 if key doesn't exist
-
getTotalSize(
) → Future< int> - Returns the current total size in bytes of all stored entries
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → Future< String?> - Reads a serialized cache entry string for the given key, returns null if not found
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, String serializedEntry) → Future< void> - Writes a serialized cache entry string for the given key
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited