CacheOptions
Defined in: unstorage-utils.ts:12
Extended by
Section titled “Extended by”Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
prefix? |
string |
Key prefix. Uses unstorage’s prefixStorage for proper scoping. |
unstorage-utils.ts:16 |
storage |
Storage |
unstorage instance — use any driver (memory, redis, fs, db, etc.). | unstorage-utils.ts:14 |
ttl? |
number |
TTL in seconds. Passed to the driver via TransactionOptions (native TTL for redis, etc.) AND stored as expiresAt in the entry (fallback for drivers without native TTL). |
unstorage-utils.ts:22 |