Skip to main content

Crate doido_cache

Crate doido_cache 

Source

Re-exports§

pub use config::CacheBackend;
pub use config::CacheConfig;
pub use config::MultiCacheConfig;
pub use global::init as init_cache;
pub use memory::MemoryStore;
pub use namespaced::NamespacedStore;
pub use registry::CacheRegistry;
pub use store::CacheStore;

Modules§

codec
Cache value serialization with optional compression (Rails cache :compress/serializer options). Values are serialized to JSON bytes and, when requested, gzip-compressed — worthwhile for large or repetitive entries.
config
Per-environment cache configuration loaded from the cache section of config/<env>.yml.
fetch
Read-through caching (Rails Rails.cache.fetch(key) { … }).
global
Process-global default cache store, built once from config at boot.
memory
multi
Batch cache operations (Rails read_multi/write_multi/fetch_multi).
namespaced
registry
store
versioning
Recyclable cache versioning (Rails cache_versioning): a stored entry carries a version, and a read with a different version is a miss — so bumping the version cheaply invalidates without deleting keys.