Browse Source

chore: add environment variables for cache TTL

pull/7596/head
mertmit 11 months ago
parent
commit
29f062b99f
  1. 4
      packages/nocodb/src/cache/CacheMgr.ts

4
packages/nocodb/src/cache/CacheMgr.ts vendored

@ -17,8 +17,8 @@ const logger = new Logger('CacheMgr');
- getRaw returns the whole cache object with metadata
*/
const NC_REDIS_TTL = 60 * 60 * 24 * 3; // 3 days
const NC_REDIS_GRACE_TTL = 60 * 60 * 24 * 1; // 1 day
const NC_REDIS_TTL = +process.env.NC_REDIS_TTL || 60 * 60 * 24 * 3; // 3 days
const NC_REDIS_GRACE_TTL = +process.env.NC_REDIS_GRACE_TTL || 60 * 60 * 24 * 1; // 1 day
export default abstract class CacheMgr {
client: IORedis;

Loading…
Cancel
Save