Skip to main content

init

Function init 

Source
pub fn init(handler_opts: &mut RequestHandlerOpts) -> Result
Available on crate feature mem-cache only.
Expand description

Initialize the in-memory cache store from handler options.

If [advanced.memory-cache] is present in the configuration, a cache store is created with the specified (or default) parameters. Values exceeding their allowed maximums are clamped silently.