UNPKG

@pushchain/core

Version:
17 lines (16 loc) 544 B
import { CHAIN, PUSH_NETWORK, VM } from '../constants/enums'; export declare class CacheKeys { static ueaAddressOnchain(chain: CHAIN, address: string, pushNetwork: PUSH_NETWORK, vm: VM): string; static deploymentStatus(address: string): string; } export declare class Cache { private cache; private maxSize; constructor(maxSize?: number); private isExpired; get(key: string): any | null; set(key: string, value: any, ttl?: number): void; clear(key: string): void; clearAll(): void; size(): number; }