Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../uploads/../../../../instantly.picotech.app/homes/../../wa.picotech.app/public_html/node_modules/escape-html/../querystring/../@protobufjs/.././camelcase/../audio-buffer/.././audio-decode/../cache-manager/dist/./../dist/stores
الملفات الموجودة في هذا الـ Path:
.
..
index.d.ts
index.js
index.js.map
memory.d.ts
memory.js
memory.js.map

مشاهدة ملف: memory.d.ts

import { LRUCache } from 'lru-cache';
import { Config, Cache, Store } from '../caching';
type LRU = LRUCache<string, any, unknown>;
type Pre = LRUCache.OptionsTTLLimit<string, any, unknown>;
type Options = Omit<Pre, 'ttlAutopurge'> & Partial<Pick<Pre, 'ttlAutopurge'>>;
export type MemoryConfig = {
    max?: number;
    sizeCalculation?: (value: unknown, key: string) => number;
    shouldCloneBeforeSet?: boolean;
} & Options & Config;
export type MemoryStore = Store & {
    get size(): number;
    dump: LRU['dump'];
    load: LRU['load'];
    calculatedSize: LRU['calculatedSize'];
};
export type MemoryCache = Cache<MemoryStore>;
/**
 * Wrapper for lru-cache.
 */
export declare function memoryStore(args?: MemoryConfig): MemoryStore;
export {};