Dancer2::Plugin::Queue::Array - Single-process, in-memory queue
# in dancer config.yml queue: default: class: Array options: name: test
This module provides a trivial, single-process, in-memory queue for testing.
name attribute does nothing useful, but it's required in order to test how options are passed to queue implementations
$queue->add_msg( $data );
Enqueues $data as a message.
my ($msg, $data) = $queue->get_msg;
Dequeues a message.
$queue->remove_msg( $msg );
Usually would remove a message from the queue as deleted, but for this demo class, does nothing, since
get_msg already removed it.
David Golden <firstname.lastname@example.org>
This software is Copyright (c) 2012 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004