In-memory, process-local data store that approximates a subset of Redis semantics sufficient for most integration tests.
This module is not intended to be a full, production-ready Redis implementation – correctness and testability are prioritised over complete feature parity.
Summary
Types
Functions
@spec del(t(), [binary()]) :: {t(), non_neg_integer()}
@spec exists(t(), [binary()]) :: {t(), non_neg_integer()}
@spec lpush(t(), binary(), [binary()]) :: {t(), non_neg_integer()}
@spec new() :: t()
@spec rpush(t(), binary(), [binary()]) :: {t(), non_neg_integer()}
@spec sadd(t(), binary(), [binary()]) :: {t(), non_neg_integer()}
@spec scard(t(), binary()) :: {t(), non_neg_integer() | {:error, binary()}}
@spec srem(t(), binary(), [binary()]) :: {t(), non_neg_integer()}
@spec system_now() :: integer()