mirror of
https://github.com/directus/directus.git
synced 2026-01-29 00:27:59 -05:00
get set for node cache service
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
* in case a new cache is used in future
|
||||
* sdtTTL is the amount of time a cache should be
|
||||
* stored, in seconds, before being deleted. Keep
|
||||
* this is mind
|
||||
* checkPeriod is the amount of seconds for the
|
||||
* autodelete to wait before checking
|
||||
* if cache needs to be deleted.
|
||||
*/
|
||||
import NodeCache from 'node-cache';
|
||||
|
||||
@@ -18,6 +20,7 @@ export default class NodeCacheService {
|
||||
useClones: false,
|
||||
});
|
||||
}
|
||||
// need to get/set/delete cache
|
||||
|
||||
async flushCache() {
|
||||
this.apiCache.flushAll();
|
||||
|
||||
Reference in New Issue
Block a user