[][src]Trait dipstick::CachedOutput

pub trait CachedOutput: Output + Send + Sync + 'static + Sized {
    fn cached(self, max_size: usize) -> OutputCache { ... }
}

Wrap an output with a metric definition cache. This can provide performance benefits for metrics that are dynamically defined at runtime on each access. Caching is useless if all metrics are statically declared or instantiated programmatically in advance and referenced by a long living variable.

Provided methods

fn cached(self, max_size: usize) -> OutputCache

Wrap an output with a metric definition cache. This can provide performance benefits for metrics that are dynamically defined at runtime on each access. Caching is useless if all metrics are statically declared or instantiated programmatically in advance and referenced by a long living variable.

Loading content...

Implementors

impl CachedOutput for Graphite[src]

impl CachedOutput for Prometheus[src]

impl CachedOutput for Statsd[src]

impl<W: Write + Send + Sync + 'static> CachedOutput for Stream<W>[src]

Loading content...