MemoryCacheStore class

In-memory LRU cache bounded by entry count and representation bytes.

Implemented types

Constructors

MemoryCacheStore({int maxEntries = 100, int maxBytes = 16 * 1024 * 1024})

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxBytes → int
final
maxEntries → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String key) → Future<CacheEntry?>
override
remove(String key) → Future<void>
override
toString() → String
A string representation of this object.
inherited
write(String key, CacheEntry entry) → Future<void>
override

Operators

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