CacheAside class final

Cache-aside (lazy loading): check cache first; on miss, load from source and populate the cache. This is the most common pattern.

Read path: Cache → on miss → Source → write to Cache → return

Inheritance

Constructors

CacheAside({Duration? ttl})
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
ttl Duration?
TTL for entries written by this policy. Overrides the cache default.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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