@stigg/cache-redis-store provides the Redis-backed cache store implementation — including distributed locking and single-execution helpers — built on the shared entities from Cache Core. It’s used by persistent-cache-service and by @stigg/node-server-sdk’s Redis integration.
- Fixed: an entitlements write stamped 0 is applied only when the key is empty or has an older stamp, like any other write. It used to replace the key whatever was cached, so an answer for a customer Stigg didn’t know yet could overwrite newer cached entitlements. Usage writes are unaffected.
- Fixed: the client recovers on its own after a Redis primary failover, such as one in AWS ElastiCache. The demoted primary keeps its open connections and rejects every write with
READONLYuntil AWS replaces the node. The client now reconnects when Redis repliesREADONLY, at most once every 5 seconds, and resends the rejected command to the new primary. - Added:
reconnectOnErrorin the Redis options. It defaults to theREADONLYhandling above. A function you pass replaces it, andnullturns it off.
- Changed: requires
ioredis5.6.1 or later, up from 5.2.4. - Added:
getRedisClient()andgetTtl()on the Redis cache service, for a host that writes its own keys on the same connection. - Updated
@stigg/cache-coreto 1.31.0.
- Added: entitlement reads now return the time the customer’s entitlements were written, read from the existing timestamp key in the same round trip.
- Changed: a customer whose entitlements timestamp is unreadable now reads as a cache miss, matching how a usage read already treats a torn entry.
- Requires
@stigg/cache-core1.28.0.
- Versions 1.14.0 through 1.28.0 (2026-06-01 to 2026-09-02) carried no functional change to
cache-redis-storeitself. 1.14.0 patched vulnerable transitive dependencies; the rest only bumped the package version to track releases of other packages in the monorepo.
- Added: support for disabling Redis cache expiration by setting
ttlto a negative value (e.g.-1, matching Redis’s own no-expiry convention). Entries are then written without theEXflag and remain authoritative through extended Stigg Cloud outages. Default behavior is unchanged (TTL stays on whenttlis unset). Consumed by@stigg/node-server-sdkv4.41.0+ (redis.ttl: -1) andpersistent-cache-servicev3.6.1+ (KEYS_TTL_IN_SECS=-1) for end-to-end no-expiry behavior.