Files
memecoin-botV2/.pnpm-store/v10/files/ae/d20bd5778035a06cef78e9c0880f83c0644f456966115b5a1980e3728099d0a739e9f06b3f7786bd9c467b1cfa77ff0d8a6b031445c858c41191ce2cab56f3

17 lines
556 B
Plaintext

import type { CacheDurationSeconds } from '@typescript-eslint/types';
export declare const DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30;
export interface CacheLike<Key, Value> {
get(key: Key): Value | undefined;
set(key: Key, value: Value): this;
}
/**
* A map with key-level expiration.
*/
export declare class ExpiringCache<Key, Value> implements CacheLike<Key, Value> {
#private;
constructor(cacheDurationSeconds: CacheDurationSeconds);
clear(): void;
get(key: Key): Value | undefined;
set(key: Key, value: Value): this;
}