CacheStore class abstract

The Cache Store Contract.

This interface corresponds to Laravel's Illuminate\Contracts\Cache\Store.

Implementers

Constructors

CacheStore()

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

flush() → Future<void>
Remove all items from the cache.
forget(String key) → Future<void>
Remove an item from the cache.
get(String key, {dynamic defaultValue}) → dynamic
Retrieve an item from the cache by key.
has(String key) → bool
Determine if an item exists in the cache.
init() → Future<void>
Initialize the driver (optional async setup).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String key, dynamic value, {Duration? ttl}) → Future<void>
Store an item in the cache for a given number of seconds.
toString() → String
A string representation of this object.
inherited

Operators

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