Function dipstick::cache
[−]
[src]
pub fn cache<M, S>(size: usize, sink: S) -> MetricCache<M, S> where
S: Sink<M>,
M: Clone + Send + Sync,
Cache metrics to prevent them from being re-defined on every use. Use of this should be transparent, this has no effect on the values. Stateful sinks (i.e. Aggregate) may naturally cache their definitions.