OptionaldefaultDefault time-to-live in seconds applied to every SetItem call
unless overridden by the ttlSeconds parameter.
Set to 0 or undefined to store keys without expiration (persistent).
OptionalenableWhether to log connection events (connect, disconnect, error) via
MemberJunction's LogStatus / LogError functions.
OptionalenableWhether to enable Redis pub/sub for cross-server cache invalidation. When enabled, the provider will:
SetItem, Remove, and ClearCategory callLocalCacheManager) can dispatch to registered callbacksPub/sub is not started automatically — call RedisLocalStorageProvider.StartListening after construction to begin subscribing.
OptionalkeyOptional prefix prepended to all Redis keys. Useful for isolating MemberJunction data in a shared Redis instance.
Keys are stored as {keyPrefix}:{category}:{key}.
OptionalmaxMaximum number of connection retry attempts before giving up. Each retry uses exponential backoff (doubling delay up to 30 seconds).
OptionaloptionsFull ioredis options object for fine-grained connection control.
Mutually exclusive with url.
OptionalurlRedis connection URL (e.g., redis://localhost:6379, rediss://user:pass@host:6380).
Mutually exclusive with options.
The rediss:// scheme enables TLS, which is required for most cloud-hosted Redis services.
Configuration options for the Redis local storage provider.
Accepts either a Redis connection URL string or an
ioredisoptions object, plus optional MemberJunction-specific settings.Example