Builds an in-process Cache backed by a Map. It exposes the same observable contract as
the Redis adapter. The Cache conformance suite runs it as its oracle, the way memoryStore is the
reference for the Store. It also serves as a usable single-process cache when no Redis is wired.
It honors ttlMs against the injected clock. An entry past its expiry reads as a miss, the same
way Redis's PX flag expires a key, so the conformance suite can drive expiry with a fake clock.
Values are opaque strings, and this never parses them.
Builds an in-process Cache backed by a
Map. It exposes the same observable contract as the Redis adapter. The Cache conformance suite runs it as its oracle, the waymemoryStoreis the reference for the Store. It also serves as a usable single-process cache when no Redis is wired.It honors
ttlMsagainst the injectedclock. An entry past its expiry reads as a miss, the same way Redis'sPXflag expires a key, so the conformance suite can drive expiry with a fake clock. Values are opaque strings, and this never parses them.