UNPKG

graphql-yoga

Version:

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

8 lines (7 loc) 283 B
import { LRUCache as LRU } from 'lru-cache'; export type LRUCache<T extends {}> = LRU<string, T>; export interface LRUCacheOptions { max?: number; ttl?: number; } export declare function createLRUCache<T extends {}>({ max, ttl, }?: LRUCacheOptions): LRU<string, T, unknown>;