You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this with express session 'express-session-cache-manager' . My current code is:
`
var cacheManager = require('cache-manager')
var CacheManagerStore = require('express-session-cache-manager').default
var fsStore = require('cache-manager-fs');
var diskCache = cacheManager.caching({
store: fsStore,
options:
{ttl: 606024/* seconds /,
maxsize: 100010001000 / max size in bytes on disk */,
path:'diskcache',
preventfill:false,
}});
I am using this with express session 'express-session-cache-manager' . My current code is:
`
var cacheManager = require('cache-manager')
var CacheManagerStore = require('express-session-cache-manager').default
var fsStore = require('cache-manager-fs');
var diskCache = cacheManager.caching({
store: fsStore,
options:
{ttl: 606024/* seconds /,
maxsize: 100010001000 / max size in bytes on disk */,
path:'diskcache',
preventfill:false,
}});
const sessionMiddleware = session({
store: new CacheManagerStore(diskCache),
secret: APP_SECRET,
resave: true,
saveUninitialized: true,
cookie: { maxAge: 2419200000}
})
app.use(sessionMiddleware)
`
This creates multiple cache files on each call.
What am i missing here?
The text was updated successfully, but these errors were encountered: