Skip to main content
Version: Next (2.x)

RedisCacheClientOptions

Extends

Properties

PropertyTypeDefault valueDescriptionInherited from

maxCommandKeysLimit?

number

100_000

Maximum number of keys in a single command. If the number of keys exceeds this limit, multiple commands will be executed.

maxPipelineCommandLimit?

number

100_000

Maximum number of commands in a single pipeline batch. If the batch exceeds this number, it will be executed immediately.

maxPipelineSizeLimit?

number

50 * 1024 * 1024 (50MB)

Maximum total size of commands in a single pipeline batch. If the batch exceeds this size, it will be executed immediately.

namespace?

string

"baeta"

Optional namespace to prefix all cache keys

CacheClientOptions.namespace

revision?

number

"default"

Revision number for cache invalidation. Incrementing this number will invalidate all existing cache entries for this store.

CacheClientOptions.revision

ttlMs?

number

3_600_000 (1 hour)

Time-to-live in milliseconds

CacheClientOptions.ttlMs