Skip to content

Commit

Permalink
Update cache.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshyx authored Feb 3, 2023
1 parent 2416e6c commit 7866b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/hub/src/storage/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import KeyvRedis from '@keyv/redis';
import Redis from 'ioredis';
import { KeyvAdapter } from '@apollo/utils.keyvadapter';

export const contextCache = new LRU({ max: 16000, maxAge: 1000 * 60 * 40 });
export const contextCache = new LRU({ max: 16000, ttl: 1000 * 60 * 40 });
export const redisConn =
process.env.NODE_ENV === 'production' && new Redis(process.env.REDIS_CONNECTION);

Expand Down

0 comments on commit 7866b1f

Please sign in to comment.