Connectum API Reference / @connectum/auth / CacheOptions
Interface: CacheOptions ​
Defined in: packages/auth/src/types.ts:112
LRU cache configuration for credentials verification
Properties ​
maxSize? ​
readonlyoptionalmaxSize?:number
Defined in: packages/auth/src/types.ts:123
Maximum number of cached entries. Must be an integer of at least 1; anything else throws RangeError when the interceptor is created.
Default ​
ts
1000ttl ​
readonlyttl:number
Defined in: packages/auth/src/types.ts:117
Cache entry time-to-live in milliseconds. Must be finite and greater than 0; anything else (0, negative, NaN, Infinity) throws RangeError when the interceptor is created.