NanoStorage class abstract
An abstract interface defining the standard contract for durable key-value storage persistence without time-to-live expirations.
Constructors
- NanoStorage()
-
Creates a NanoStorage instance.
const
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(
{String? prefix}) → void -
Clears all stored values, optionally filtered by
prefix. -
delete(
String key) → void -
Deletes a stored value associated with
key. -
get<
T> (String key) → T? -
Retrieves a stored value of type
Tassociated withkey. -
has(
String key) → bool -
Checks whether
keyexists in storage. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set<
T> (String key, T value) → void -
Saves a
valueof typeTassociated withkey. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited