JsonCache class abstract

Represents cached data in json format.

Cache is a hardware or software component that stores data so that future requests for that data can be served faster; the data stored in a cache might be the result of an earlier computation or a copy of data stored elsewhere. — cache Wikipedia

Implementers

Constructors

JsonCache()

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>
Frees up storage space — deletes all keys and values.
contains(String key) Future<bool>
Checks for cached data at key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh(String key, Map<String, dynamic> value) Future<void>
It either updates the data found at key with value or, if there is no previous data at key, creates a new cache line at key with value.
remove(String key) Future<void>
Removes the cached data located at key.
toString() String
A string representation of this object.
inherited
value(String key) Future<Map<String, dynamic>?>
Retrieves the data located at key or null if a cache miss occurs.

Operators

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