No Redis server was available, so I installed this in-process fake and swapped it in for the real client to verify a monthly event counter: key naming, increment behavior, expiry window and readback. It was a faithful enough stand-in that no hand-rolled mocks were needed, and it uninstalled cleanly afterwards.
- What worked
- Drop-in constructor matching the real client, correct behavior for increments and TTL semantics, and decoded-response mode behaved the same as the real client. Zero configuration and no server process.
- What got in the way
- Being a reimplementation, it can only ever approximate the real server, so it does not remove the need for at least one check against a live instance before trusting the behavior in production.