@leyyo/cache
Version:
Common cache library
11 lines (10 loc) • 347 B
TypeScript
export declare const SaveModeItems: readonly ["always", "absent", "exists"];
/**
* Save mode for expiry times
*
* @enum {string} - literal
* - always: Always set
* - absent: Only set the key if it does not already exist. [NX]
* - exists: Only set the key if it already exists. [XX]
* */
export type SaveMode = typeof SaveModeItems[number];