shared-state
Concurrent state utilities for Rust services.
Provides [ReadyGate] for readiness probing, [TtlCache] for time-expiring caches, [SharedCounter] for atomic counters, and type aliases for common concurrent patterns.
Usage
[]
= "0.1"
Features
ReadyGate— Thread-safe readiness gate for Kubernetes probesTtlCache— Concurrent cache with per-entry TTL evictionSharedCounter— Atomic counter with increment/decrement/resetSharedMap<K,V>— Type alias forArc<RwLock<HashMap<K,V>>>SharedCache<K,V>— Type alias forArc<DashMap<K,V>>
License
MIT OR Apache-2.0