nakedobjects.spa
Version:
Single Page Application client for a Naked Objects application.
21 lines (20 loc) • 641 B
TypeScript
import * as Ro from './ro-interfaces';
export declare type CachableTypes = Ro.IRepresentation | Blob;
export declare class SimpleLruCache {
private readonly depth;
constructor(depth: number);
private cache;
private count;
private head;
private tail;
private unlinkNode(node);
private moveNodeToHead(node);
add(key: string, value: CachableTypes): void;
remove(key: string): void;
removeAll(): void;
private getNode(key);
get(key: string): CachableTypes | null;
private updateExistingEntry(key, value);
private addNewEntry(key, value);
private trimCache();
}