Closed morwalz closed 1 year ago
Sorry somehow this issue went unnoticed. Do you think you can provide a repro case of this issue?
I noticed there is no test covering clearAll
so it might actually be happening.
I noticed the function removes the file, But somehow cache.getKey(key) is still able to locate the key in memory.
Please fix this as soon as possible. Even clearCacheById is not working for me.
Thanks
@royriojas It is simple. this function at all does not work
Doesn't this pretty much ruin the module?
You have to provide folder cache path, example:
const flatCache = require('flat-cache');
const flatCacheFolderPath = './src/Server/Config/_flat-cache';
...
flatCache.clearAll(flatCacheFolderPath); // remove the cache directory
Hi Function clear all not working