Skip to main content

Module cache

Module cache 

Source
Expand description

Cache connections from a CacheConfig.

  • redis feature → connect_redis, a managed async Redis connection.
  • cache-memory feature → build_memory_cache, an in-process moka cache.

Re-exports§

pub use redis::connect as connect_redis;
pub use memory::build_memory_cache;

Modules§

memory
In-process cache (moka) sized and TTL’d from a CacheConfig.
redis
Managed async Redis connection from a CacheConfig.