NAME
Dancer::Plugin::Queue::MongoDB - Dancer::Plugin::Queue backend using MongoDB
VERSION
version 0.003
SYNOPSIS
# in config.yml
plugins:
Queue:
default:
class: MongoDB
options:
db_name: dancer_test
queue_name: msg_queue
connection_options:
host: mongodb://localhost:27017
# in Dancer app
use Dancer::Plugin::Queue::MongoDB;
get '/' => sub {
queue->add_msg( $data );
};
DESCRIPTION
This module implements a Dancer::Plugin::Queue using MongoDBx::Queue.
ATTRIBUTES
db_name
Name of the database to hold the queue collection. Required.
queue_name
Name of the collection that defines the queue. Defaults to 'queue'.
connection_options
MongoDB::Connection options hash to create the connection to the database holding the queue. Empty by default, which means connecting to localhost on the default port.
queue
The MongoDBX::Queue object that manages the queue. Built on demand from other attributes.
USAGE
See documentation for Dancer::Plugin::Queue.
SEE ALSO
SUPPORT
Bugs / Feature Requests
Please report any bugs or feature requests through the issue tracker at https://github.com/dagolden/Dancer-Plugin-Queue-MongoDB/issues. You will be notified automatically of any progress on your issue.
Source Code
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/dagolden/Dancer-Plugin-Queue-MongoDB
git clone https://github.com/dagolden/Dancer-Plugin-Queue-MongoDB.git
AUTHOR
David Golden <dagolden@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004