IndexedDbApiCacheStore class

Two object stores: answers, keyed by the request key with an index on the save time for prune, and meta, which holds the owner.

Implemented types

Constructors

IndexedDbApiCacheStore(String name)

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
The database's name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → Future<void>
Removes every answer. The owner is left as it is.
override
get(String key) → Future<StoredAnswer?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prune({required DateTime savedBefore}) → Future<void>
Removes every answer saved before savedBefore.
override
put(String key, StoredAnswer answer) → Future<void>
override
readOwner() → Future<String?>
The identity the saved answers belong to, as last written.
override
toString() → String
A string representation of this object.
inherited
writeOwner(String? owner) → Future<void>
override

Operators

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