UNPKG

@thermopylae/lib.cache

Version:
15 lines (14 loc) 312 B
/** * @private */ declare class CircularBuffer<T> { private readonly storage; private readonly capacity; constructor(capacity: number); get size(): number; add(element: T): void; has(element: T): boolean; delete(element: T): boolean; clear(): void; } export { CircularBuffer };