creating cache directories
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import Cacheman from 'cacheman';
|
||||
import { CACHE } from './Constants';
|
||||
import { createCacheDirectories } from './TempDirCreator';
|
||||
|
||||
const formatKey = (name) => {
|
||||
if (!name) {
|
||||
@@ -12,6 +13,7 @@ class Cache {
|
||||
manager;
|
||||
|
||||
constructor() {
|
||||
createCacheDirectories(CACHE.directory);
|
||||
this.manager = new Cacheman({
|
||||
ttl: CACHE.ttl,
|
||||
engine: CACHE.engine,
|
||||
|
||||
Reference in New Issue
Block a user