BloomStorageAdapter class abstract

Abstract storage adapter contract for key-value persistence.

Defines synchronous or asynchronous primitives for reading, writing, deleting, checking existence, and purging stored string keys.

Example:

class MyDatabaseStorageAdapter implements BloomStorageAdapter { ... }
Implementers

Constructors

BloomStorageAdapter()

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() FutureOr<void>
Clears all entries in this storage adapter.
containsKey(String key) FutureOr<bool>
Checks whether key exists in storage.
delete(String key) FutureOr<void>
Deletes stored value associated with key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String key) FutureOr<String?>
Reads raw string value associated with key, or null if absent.
toString() String
A string representation of this object.
inherited
write(String key, String value) FutureOr<void>
Writes value string associated with key.

Operators

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