UNPKG

graphql-yoga

Version:

<div align="center"><img src="./website/public/cover.png" width="720" /></div>

8 lines (7 loc) 238 B
import LRU from 'lru-cache'; const DEFAULT_MAX = 1024; const DEFAULT_TTL = 3600000; // eslint-disable-next-line @typescript-eslint/ban-types export function createLRUCache() { return new LRU({ max: DEFAULT_MAX, ttl: DEFAULT_TTL }); }