Key prefix for scoping clear() to this instance's keys.
An empty prefix would scan * in clear() — acceptable only for single-
tenant Redis deployments.
Optionaloptions: {Redis connection and client options
Optionalclient?: IRedisClientInjected ioredis-compatible client (bypasses lazy import)
OptionalcommandTimeoutMs?: numberBound on one Redis command of the client
this store BUILDS (default DEFAULT_REDIS_COMMAND_TIMEOUT_MS;
0 disables it). Never applied to an injected client.
OptionalconnectionErrorReporter?: ConnectionErrorReporterReceives the connection errors
(ioredis 'error' events) of the client this store BUILDS, instead of
ioredis printing each one to the console. Never attached to an
injected client. CachePlugin supplies one backed by its logger.
Optionalurl?: stringRedis connection URL (default redis://localhost:6379)
Remove all entries scoped to this backend's prefix.
The prefix is provided at construction time (not per-call), so each backend can scope the clear appropriately:
SCAN MATCH ${prefix}* + batch DELEstablish the backend connection (if applicable).
Delete a value. The key is already-prefixed by CacheService.
Already-prefixed cache key
true if removed
Gracefully disconnect.
Read a value. The key is already-prefixed by CacheService.
Expected value type
Already-prefixed cache key
The deserialized value, or null when absent/expired
Check existence. The key is already-prefixed by CacheService.
Already-prefixed cache key
true if present and unexpired
Probes Redis with a typed ping() (M90b). false after disconnect —
a store with no client cannot answer — and otherwise true only when
the server answers, a rejection being unreachability.
The plugin caches and bounds this probe; this method is the raw per-call question.
true when Redis answers ping
Reports whether the backend is ready for operations.
Write a value. The key is already-prefixed by CacheService.
Value type
Already-prefixed cache key
Value to store
OptionalttlSeconds: number
Optional TTL in seconds
Redis-backed cache store implementation.
Values are JSON-serialized before storage so that arbitrary types can be cached. The
prefixis applied at construction time and used exclusively byclear()to scope the SCAN+DEL to this instance's keys.Since
0.1.0