Skip to main content

brz_memcache/
lib.rs

1//! High-performance asynchronous memcached access through one unified
2//! [`CacheService`] facade.
3//!
4//! - [`CacheService::single`] builds one fixed master with one shard/node.
5//! - [`CacheService::new`] builds a fixed replica/shard topology.
6//! - [`CacheService::new_live`] accepts application-owned configuration sources.
7
8pub mod cacheservice;
9pub mod config;
10pub mod error;
11pub mod expiration;
12pub mod value;
13
14mod api;
15mod cache_topology;
16#[cfg(feature = "metrics")]
17mod profile_metrics;
18mod service;
19mod session_protocol;
20mod sharding;
21
22pub use api::{
23    CacheEntry, CacheService, CacheServiceConfigSource, CacheServiceOptions, Memcache, SetOptions,
24    SubscriptionHandle,
25};
26pub use cacheservice::{CacheNamespaceConf, CacheServiceConfig, CacheServiceError};
27pub use config::Protocol;
28pub use error::{Error, Result};
29pub use expiration::Expiration;
30pub use value::{CasValue, ToMemcacheValue, Value, flags};