MemoryCacheStore class

In-memory CacheStore implementation.

This store is process-local and is cleared when the app restarts.

Implemented types

Constructors

MemoryCacheStore.new()

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 in-memory values.
override
get(String key) Future<Object?>
Reads a value from memory.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String key, Object? value) Future<void>
Saves value under key in memory.
override
remove(String key) Future<void>
Removes a value from memory.
override
toString() String
A string representation of this object.
inherited

Operators

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