FileCacheAdapter
Implements
- CacheAdapter
Index
Constructors
Methods
Constructors
constructor
Parameters
options: { cacheDir: string }
cacheDir: string
baseDir: string
pretty: boolean = false
Returns FileCacheAdapter
Methods
clear
Returns Promise<void>
get
Gets the items under
name
key from the cache.Parameters
name: string
Returns Promise<any>
remove
Removes the item from cache.
Parameters
name: string
Returns Promise<void>
set
Sets the item to the cache.
origin
is used for cache invalidation and should reflect the change in data.Parameters
name: string
data: any
origin: string
Returns Promise<void>
Clears all items stored in the cache.