The following documentation is automatically generated. Please do not edit this file, but rather the original, inline with Myriad::Transport::Memory at lib/Myriad/Transport/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::Transport::Memory - In-Memory data layer that mimics Redis behaviour..
my $transport = Myriad::Transport::Memory->new(); $transport->publish('channel_name', 'event...');
Thrown when the operation requires the stream to be created beforehand but the stream is not currently available.
Thrown when the user is trying to re-create a group but the operation doesn't allow that.
Thrown when the operation requires the group to be exist but it's not.
Creats an empty stream.
stream_name - The name of the stream.
stream_name
Adds a new item to a stream, if the stream doesn't exist it'll be created.
data - A perl hash that contains the user data.
data
Creates a consumer group for a given stream.
group_name - The name of the group that is going to be created.
group_name
offset - If set the group will see this value as the first message in the stream.
offset
make_stream - If set and the stream doesn't exist it'll be created.
make_stream
Read elements from the stream.
This operation is stateless you can re-read the same message as long as it exists in the stream.
offset - The number of messages to skip.
count - The limit of messages to be received.
count
Read elements from the stream for the given group.
This operation is stateful if the message read by a consumer "A" it won't be available for consumer "B" also consumer "A" won't be able to re-read the message using this call.
This is not exaclty how Redis works but it covers our need at the moment.
stream_name - The name of the stream should exist before calling this sub.
group_name - The name of the group should exist before callingg this sub.
consumer_name - The current consumer name, will be used to keep tracking of pendign messages.
consumer_name
offset - If given the consumer can skip the given number of messages.
Remove a message from the pending list.
It's safe to call this method multiple time even if the message doesn't exist.
group_name - The name of group that has this message as pending.
message_id - The Id of the message that we want to acknowledge.
message_id
Re-assign a message to another consumer.
It'll return the full message.
group_name - The name of the group that has the message as pending.
consumer_name - The name of the new consumer.
message_id - The id of the message to be claimed.
Publish a message, if no consumer exists the message will be lost.
channel_name - The name of the channel that the message will be published to.
channel_name
message - A scalar that is going to be published.
message
Subscribe to a channel by optaining a Ryu::Source that'll receive events.
channel_name - The name of the channel.
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
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.