RedisStorageOptions
Defined in: src/storage/redis.ts:64
Options for createRedisStorage and createRedisJSONStorage.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
client? |
RedisClientType |
A pre-constructed (optionally pre-connected) node-redis client. Never closed by the driver. | src/storage/redis.ts:74 |
onError? |
(error) => void |
Called on client error events (connection drops, reconnects). A handler is always attached so a downed Redis never crashes the process with an unhandled error event. |
src/storage/redis.ts:81 |
onWrite? |
RedisWriteHook |
Called after every write, swap and remove; see RedisWriteHook. | src/storage/redis.ts:83 |
prefix? |
string |
Optional key namespace prepended to every key, joined with :. |
src/storage/redis.ts:76 |
subpath? |
string |
The import path to name in error messages (a missing peer, a missing client/url…), e.g. "@xtandard/webhooks/storage/redis" when a product re-exports this driver. Default: the kit subpath. |
src/storage/redis.ts:70 |
url? |
string |
Connection URL (e.g. redis://localhost:6379). Used when no client is given. |
src/storage/redis.ts:72 |