OptionalsetSET key value NX EX seconds, used for the summary lock. Optional so an existing
client shim keeps working; without it, tryAcquireSummaryLock is unavailable rather
than silently unsafe. ioredis spells the variadic form set(key, val, "EX", n, "NX")
and node-redis set(key, val, { EX: n, NX: true }), so both shapes are accepted.
Minimal structural interface for a Redis client, shaped like ioredis (
new Redis(url)), which satisfies it directly. node-redis v4 names its commands in camelCase (rPush,lRange), so it needs a thin wrapper mapping these methods onto its own. Injecting the client keepsactrone-memoryfree of a hardioredisdependency and makes the store unit-testable with an in-memory fake.