CacheOptions
@blobs/sdk / cache / CacheOptions
Defined in: cache/CacheProvider.ts:78
Construction options shared by all built-in cache providers.
Properties
defaultTTL?
optionaldefaultTTL?:number
Defined in: cache/CacheProvider.ts:83
Default TTL applied when a set() call omits its own TTL, in milliseconds.
0 means entries never expire automatically.
prefix?
optionalprefix?:string
Defined in: cache/CacheProvider.ts:89
Optional key prefix used to namespace the provider’s storage. Most useful for LocalStorageCache when sharing localStorage.
debug?
optionaldebug?:boolean
Defined in: cache/CacheProvider.ts:94
When true, the provider logs hits, misses, and writes via console.log.