Closed sayjeyhi closed 7 months ago
Probably is related to this PR, which seems to address the problem
If you check, the current master exports a create
method instead of the store itself. Can you try use that as the store?
import { create as fsStore } from 'cache-manager-fs-hash';
const cacheService = await caching({
options: {
// ... options
},
store: fsStore,
});
Based on the source code https://github.com/jaredwray/cache-manager/blob/v5.5.0/src/caching.ts#L69 it looks like the caching method changed, there is no store option anymore.
I think the new way would be to pass the store object as the first param like its done in https://github.com/huijiewei/cache-manager-sqlite
const memStoreCache = await cacheManager.caching(sqliteStore({cacheTableName: 'caches'}));
I published version 2 of the node-cache-manager-fs-hash
library and updated the Readme examples. The library should now work with cache-manager
version 5.
Hi
I am using
cache-manager
:"^5.5.1",
and I get an error when I try to usenode-cache-manager-fs-hash
It seems the package is not compatible with the new versions of
cache-manager
.here is my code: