The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mojolicious::Plugin::Statsd::Adapter::Memory - In-Memory stat recording

DESCRIPTION

This adapter for Mojolicious::Plugin::Statsd keeps all recorded stats in its "stats" attribute and does nothing else. It's useful for testing.

INHERITANCE

Mojolicious::Plugin::Statsd::Adapter::Memory is a Mojo::Base

ATTRIBUTES

stats

A hashref with a key per stat name recorded. Currently, counters are scalar values and timings are hashrefs with 'samples', 'avg, 'min', 'max' keys. This isn't meant to keep reliable metrics right now.

METHODS

timing

See "timing" in Mojolicious::Plugin::Statsd.

counter

See "counter" in Mojolicious::Plugin::Statsd.