interface CacheStoreOptions
Since 0.1.0

Options for creating a cache store backend.

Properties

optional
url: string

Redis connection URL (used when store is 'redis').

Injected ioredis-compatible client (bypasses lazy import).

optional
prefix: string

Key prefix applied to all cache keys.

optional
defaultTtl: number

Default TTL in seconds when set omits ttlSeconds.

optional
maxSize: number

Maximum entry count for MemoryStore LRU eviction.

Usage

import { type CacheStoreOptions } from "cache-plugin/src/index.ts";