Skip to main content

Module distributed_lock

Module distributed_lock 

Source
Expand description

Cross-node single-flight: the DistributedLocker seam.

In-process stampede protection (KeyedLock) guarantees one factory per key per node. A distributed locker extends that to one factory per key across the cluster, matching FusionCache’s IFusionCacheDistributedLocker. It is token-based: acquire returns an opaque token that release consumes, so a Redis (SET key token NX PX) or database implementation maps cleanly.

Structs§

InMemoryDistributedLocker
An in-process reference DistributedLocker.

Traits§

DistributedLocker
A cross-node lock backend.