get set for node cache service

This commit is contained in:
Tanya Byrne
2020-08-19 18:47:45 +01:00
parent 1d42e691d3
commit b16d28ce23

View File

@@ -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();