The following documentation is automatically generated. Please do not edit this file, but rather the original, inline with Myriad::Storage::Implementation::Memory at lib/Myriad/Storage/Implementation/Memory.pm (on the system that originally ran this). If you do edit this file, and don't want your changes to be removed, make sure you change the first line.
Myriad::Storage::Implementation::Memory - microservice storage abstraction
This is intended for use in tests and standalone local services. There is no persistence, and no shared data across multiple processes, but the full Myriad::Storage API should be exposed correctly.
Takes the following parameters:
$k - the relative key in storage
$k
Returns a Future which will resolve to the corresponding value, or undef if none.
undef
$v - the scalar value to set
$v
Note that references are currently not supported - attempts to write an arrayref, hashref or object will fail.
Returns a Future which will resolve on completion.
Returns a Future which will resolve to the corresponding incremented value, or undef if none.
Observe a specific key.
Returns a Ryu::Source which will emit the current and all subsequent values.
Returns update about keyspace
Returns a Future which will resolve to .
Returns a Future which will resolve to the scalar value for this key.
Returns a Future indicating success or failure.
Returns a Future which will resolve to a list of the keys in no defined order.
Returns a Future which will resolve to a list of the values in no defined order.
Returns a Future which will resolve to true if the key exists in this hash.
Returns a Future which will resolve to the count of the keys in this hash.
Returns a Future which will resolve to a list of key/value pairs, suitable for assigning to a hash.
add_child, adopt_future, adopted_futures, can_event, children, configure, configure_unknown, debug_printf, get_loop, invoke_error, invoke_event, loop, make_event_cb, maybe_invoke_event, maybe_make_event_cb, notifier_name, parent, remove_child, remove_from_parent
BUILDARGS
Defer
Deriv Group Services Ltd. DERIV@cpan.org.
DERIV@cpan.org
See "CONTRIBUTORS" in Myriad for full details.
Copyright Deriv Group Services Ltd 2020-2021. Licensed under the same terms as Perl itself.
To install Myriad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Myriad
CPAN shell
perl -MCPAN -e shell install Myriad
For more information on module installation, please visit the detailed CPAN module installation guide.