FileCacheStore class final

A JsonCacheStore kept in the file at path (created on first write, with any missing parent directories).

Implemented types

Constructors

FileCacheStore(String path, {int maxEntries = 200})

Properties

hashCode → int
The hash code for this object.
no setterinherited
path → String
The file holding the cache.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → Future<void>
Clears all entries from the cache.
override
get(String key) → Future<WordpressRawResponse?>
Retrieves a value from the cache using the specified key.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String key) → Future<void>
Removes a specific entry from the cache.
override
removeWhere(bool test(String key)) → Future<void>
Removes every entry whose key satisfies test.
override
set(String key, WordpressRawResponse value, {Duration? expiry}) → Future<void>
Stores a value in the cache with the specified key.
override
toString() → String
A string representation of this object.
inherited

Operators

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