Interface: FileSystemCache
Cache owner used by cache; implementations may be in-memory or persistent.
Methods
Section titled “Methods”invalidate()
Section titled “invalidate()”invalidate(
key):void|Promise<void>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void | Promise<void>
keys()
Section titled “keys()”keys():
Iterable<string,any,any> |AsyncIterable<string,any,any> |Promise<Iterable<string,any,any> |AsyncIterable<string,any,any>>
Returns
Section titled “Returns”Iterable<string, any, any> | AsyncIterable<string, any, any> | Promise<Iterable<string, any, any> | AsyncIterable<string, any, any>>
read()
Section titled “read()”read<
T>(key,load):T|Promise<T>
Type Parameters
Section titled “Type Parameters”T extends CacheValue
Parameters
Section titled “Parameters”string
() => T | Promise<T>
Returns
Section titled “Returns”T | Promise<T>