creating cache directories

This commit is contained in:
2020-05-25 16:35:46 +03:00
parent d986f7801b
commit cc0b5efe9f
3 changed files with 19 additions and 0 deletions

View File

@@ -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,