RedisStorageOptions
Defined in: src/storage/redis.ts:58
Options for createRedisStorage.
Extends
Section titled “Extends”Omit<KitRedisStorageOptions,"onWrite">
Properties
Section titled “Properties”| Property | Type | Description | Overrides | Defined in |
|---|---|---|---|---|
client? |
RedisClientType |
A pre-constructed (optionally pre-connected) node-redis client. | Omit.client |
src/storage/redis.ts:62 |
onError? |
(error) => void |
Called on client error events (connection drops, reconnect failures). A handler is always attached internally so a downed Redis never crashes the process via an unhandled error event — this just lets you observe/log them. |
Omit.onError |
src/storage/redis.ts:70 |
prefix? |
string |
Optional key namespace prepended to every key, joined with :. |
Omit.prefix |
src/storage/redis.ts:64 |
url? |
string |
Connection URL (e.g. redis://localhost:6379). Used when no client is given. |
Omit.url |
src/storage/redis.ts:60 |