Dancer::Plugin::Queue::MongoDB - Dancer::Plugin::Queue backend using MongoDB
version 0.003
# 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 ); };
This module implements a Dancer::Plugin::Queue using MongoDBx::Queue.
Name of the database to hold the queue collection. Required.
Name of the collection that defines the queue. Defaults to 'queue'.
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.
The MongoDBX::Queue object that manages the queue. Built on demand from other attributes.
See documentation for Dancer::Plugin::Queue.
Dancer::Plugin::Queue
MongoDBx::Queue
MongoDB::Connection
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.
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
David Golden <dagolden@cpan.org>
This software is Copyright (c) 2012 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Dancer::Plugin::Queue::MongoDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::Queue::MongoDB
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::Queue::MongoDB
For more information on module installation, please visit the detailed CPAN module installation guide.