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
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