Expand description
High-performance asynchronous memcached access through one unified
CacheService facade.
CacheService::singlebuilds one fixed master with one shard/node.CacheService::newbuilds a fixed replica/shard topology.CacheService::new_liveaccepts application-owned configuration sources.
Re-exports§
pub use cacheservice::CacheNamespaceConf;pub use cacheservice::CacheServiceConfig;pub use cacheservice::CacheServiceError;pub use config::Protocol;pub use error::Error;pub use error::Result;pub use expiration::Expiration;pub use value::CasValue;pub use value::ToMemcacheValue;pub use value::Value;pub use value::flags;
Modules§
- cacheservice
- Application-supplied cache topology and native configuration parsing.
- config
- Public protocol selection for
crate::CacheService. - error
- expiration
- value
Structs§
- Cache
Entry - A value returned by
Memcache::get. - Cache
Service - A CacheService-backed
Memcacheimplementation. - Cache
Service Options - Instance-level settings for
CacheService. - SetOptions
- Optional per-write overrides for
Memcache::set_with. - Subscription
Handle - Owns one source subscription. Dropping it cancels the subscription and stops the source’s internal polling/listening for this subscriber.
Traits§
- Cache
Service Config Source - Supplies a live, possibly-changing namespace configuration.
CacheServicedoes not poll: the source detects changes and pushes them by invoking theon_updatecallback registered viaCacheServiceConfigSource::subscribe. - Memcache
- The small memcache contract consumed by application code.