etcdrs-util
Higher-level utilities built on etcdrs.
Key-Value Caching
The [cache::CacheClient] mirrors the key-value operations of a [Client][etcdrs::Client],
serving reads of configured key ranges from a local in-memory store kept coherent by a watch.
Reads the cache cannot prove fresh pass through to the server, preserving read-your-writes
semantics without ever blocking:
# async ;
Requires the cache feature (enabled by default).
Lease Pooling
The [lease_pool::LeasePool] manages etcd leases automatically, grouping leases by TTL and keeping
them alive in a background task. Instead of manually granting, tracking, and renewing leases, a pool
handles all of this with a single call:
# async ;
Requires the lease-pool feature (enabled by default).
Feature Flags
cache(default) -- enables the [cache] module.lease-pool(default) -- enables the [lease_pool] module.