rrule-rust
Version:
RRule implementation for browsers and Node.js written in Rust
16 lines (15 loc) • 424 B
TypeScript
export interface OperationOptions {
disabled: boolean;
}
export declare class OperationCache {
private _disabled;
private readonly store;
constructor({ disabled }: OperationOptions);
get disabled(): boolean;
getOrSet<T>(key: string, defaultValue: T): T;
getOrCompute<T>(key: string, compute: () => T): T;
disable(): void;
enable(): void;
clear(): void;
clone(): OperationCache;
}