The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Time::Progress::Stored::Storage::Memory - Store the reports in-memory

DESCRIPTION

This is mostly for testing.

Store the reports in serialized JSON, to emulate storing them in an external server, which is better than just keeping the hashref around would be.

PROPERTIES

METHODS

store($id, $content) : Bool

Store the current report $content (a data structure) under the $id key.

retrieve($id) : $content | undef

Retrieve the current report $content under the $id key, or undef if none was found.