RedisConnection
Defined in: src/storage/redis.ts:207
A lazily connected node-redis client (semi-public, ADR 0004).
Methods
Section titled “Methods”attachErrorHandler()
Section titled “attachErrorHandler()”attachErrorHandler(c): void;Defined in: src/storage/redis.ts:211
Attach the internal error listener (and onError) to a client.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
c |
RedisLike |
Returns
Section titled “Returns”void
close()
Section titled “close()”close(): Promise<void>;Defined in: src/storage/redis.ts:213
Quit the client if this connection created it.
Returns
Section titled “Returns”Promise<void>
get(): Promise<RedisLike>;Defined in: src/storage/redis.ts:209
Resolve a connected client, creating/connecting it on first use (retried after a failure).
Returns
Section titled “Returns”Promise<RedisLike>