Files
Odoo-GraphQL-Subscription-C…/graphql-subscription/node_modules/@wry/caches/lib/strong.d.ts
2024-06-03 20:23:50 +05:30

17 lines
494 B
TypeScript

import type { CommonCache } from "./common";
export declare class StrongCache<K = any, V = any> implements CommonCache<K, V> {
private max;
dispose: (value: V, key: K) => void;
private map;
private newest;
private oldest;
constructor(max?: number, dispose?: (value: V, key: K) => void);
has(key: K): boolean;
get(key: K): V | undefined;
get size(): number;
private getNode;
set(key: K, value: V): V;
clean(): void;
delete(key: K): boolean;
}