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

The following documentation is automatically generated. Please do not edit this file, but rather the original, inline with Myriad::Storage::Implementation::Redis at lib/Myriad/Storage/Implementation/Redis.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.

NAME

Myriad::Storage::Redis - microservice storage abstraction

SYNOPSIS

apply_prefix

Add the storage prefix to the key before sending it to Redis

get

Takes the following parameters:

  • $k - the relative key in storage

Returns a Future which will resolve to the corresponding value, or undef if none.

set

Takes the following parameters:

  • $k - the relative key in storage

  • $v - the scalar value to set

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.

getset

Takes the following parameters:

  • $k - the relative key in storage

  • $v - the scalar value to set

Note that references are currently not supported - attempts to write an arrayref, hashref or object will fail.

Returns a Future which will resolve to the original value on completion.

observe

Observe a specific key.

Returns a Ryu::Source which will emit the current and all subsequent values.

observe_namespace

Observe and entire namespace.

push

Takes the following parameters:

  • $k - the relative key in storage

  • $v - the scalar value to set

Returns a Future which will resolve to .

unshift

Takes the following parameters:

Returns a Future which will resolve to .

pop

Takes the following parameters:

Returns a Future which will resolve to .

shift

Takes the following parameters:

Returns a Future which will resolve to .

hash_set

Takes the following parameters:

Returns a Future which will resolve to .

hash_get

Takes the following parameters:

Returns a Future which will resolve to the scalar value for this key.

hash_add

Takes the following parameters:

Returns a Future indicating success or failure.

hash_keys

Takes the following parameters:

Returns a Future which will resolve to a list of the keys in no defined order.

hash_values

Takes the following parameters:

Returns a Future which will resolve to a list of the values in no defined order.

hash_exists

Takes the following parameters:

Returns a Future which will resolve to true if the key exists in this hash.

hash_count

Takes the following parameters:

Returns a Future which will resolve to the count of the keys in this hash.

hash_as_list

Takes the following parameters:

Returns a Future which will resolve to a list of key/value pairs, suitable for assigning to a hash.

INHERITED METHODS

Object::Pad::UNIVERSAL

BUILDARGS

AUTHOR

Deriv Group Services Ltd. DERIV@cpan.org.

See "CONTRIBUTORS" in Myriad for full details.

LICENSE

Copyright Deriv Group Services Ltd 2020-2021. Licensed under the same terms as Perl itself.