Skip to main content

Crate gproxy_cache

Crate gproxy_cache 

Source
Expand description

Portable short-lived state and atomic coordination, without business entities. Notifications are lossy invalidation hints. Subscribe first, reload durable state on ResyncRequired/reconnect, and periodically check its revision. A transport error or cancellation after dispatch does not prove no mutation occurred. Non-idempotent operations are never automatically replayed here.

Structs§

Counter
Exact nonnegative counter, bounded by signed i64 storage. Expiry is fixed when the generation is first created; later increments do not extend it.
Entry
Limits
MemoryCache
Clone shares one process-local cache. Separate new() calls are isolated.
MemoryOptions
Replacement
Version
Random identity for a value generation or a permit holder. Never reused by the library, even after expiry/deletion. This is not a monotonic fencing ID.

Enums§

CacheError
CasOutcome
IncrementOutcome
Notification

Traits§

Cache
Each method is atomic for its one key. There are no cross-key transactions. KV values, counters, permits and notification topics have separate domains.
Subscription

Type Aliases§

Result