UNPKG

graphql-yoga

Version:

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

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