Skip to main content

Crate shared_state

Crate shared_state 

Source
Expand description

Concurrent state utilities for Rust services.

Provides ReadyGate for readiness probing, ttl::TtlCache for time-expiring caches, counter::SharedCounter for atomic counters, and type aliases for common concurrent patterns.

Re-exports§

pub use ready::ReadyGate;

Modules§

counter
Atomic counter utilities.
ready
Readiness gate for service health probing.
ttl
Time-to-live cache backed by DashMap.

Functions§

shared_cache
Create a new SharedCache.
shared_map
Create a new SharedMap.

Type Aliases§

SharedCache
Type alias for a shared concurrent cache backed by DashMap.
SharedMap
Type alias for a shared concurrent map backed by tokio::sync::RwLock.