Documentation / @zerotal/cache / index / CacheConfig
Function: CacheConfig()
CacheConfig(
options?):CacheConfigShape
Defined in: cache/src/config.ts:43
Create a typed cache configuration object with defaults.
Parameters
options?
Partial<CacheConfigShape> = {}
Returns
Example
import { CacheConfig } from '@zerotal/cache';
export default CacheConfig({ driver: 'sqlite', ttl: 600 });