UNPKG

webglimpse

Version:

Webglimpse is a data visualization library for the web.

18 lines (17 loc) 470 B
export interface CacheHelper<V> { create(key: string): V; dispose(value: V, key: string): void; } export declare class Cache<V> { private helper; private map; constructor(helper: CacheHelper<V>); value(key: string): V; clear(): void; remove(key: string): void; removeAll(keys: string[]): void; retain(key: string): void; retainAll(keys: string[]): void; resetTouches(): void; retainTouched(): void; }