UNPKG

graphql-yoga

Version:

[![GraphQL Conf 2023](/GraphQLConf-2023-Banner.png)](https://graphql.org/conf/)

12 lines (11 loc) 425 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createLRUCache = void 0; /* eslint-disable @typescript-eslint/ban-types */ const lru_cache_1 = require("lru-cache"); const DEFAULT_MAX = 1024; const DEFAULT_TTL = 3600000; function createLRUCache({ max = DEFAULT_MAX, ttl = DEFAULT_TTL, } = {}) { return new lru_cache_1.LRUCache({ max, ttl }); } exports.createLRUCache = createLRUCache;