antlion-lacewing - v2.0.1
    Preparing search index...

    Class RedisReplayStore

    A replay store shared by every process connected to one Redis.

    Each proof is one SET <prefix><key> 1 PX <ttl> NX, which records the key only if it is absent, atomically, inside Redis. Keys expire on the Redis server's clock, so the nodes' clocks never meet here.

    Set maxmemory-policy to noeviction: under any other policy Redis may evict a replay key before it expires, and that proof is then accepted again. Under noeviction a full Redis refuses the write and the request is refused with it.

    Writes go to a primary. Redis replicates asynchronously, so a primary that fails over before replicating an accepted proof forgets it, and that proof can be accepted once more until it expires.

    Implements

    Index