Dancer2::Plugin::Queue::MongoDB - Dancer2::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 Dancer2 app use Dancer2::Plugin::Queue::MongoDB; get '/' => sub { queue->add_msg( $data ); };
This module implements a Dancer2::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 Dancer2::Plugin::Queue.
Dancer2::Plugin::Queue
MongoDBx::Queue
MongoDB::Connection
Please report any bugs or feature requests through the issue tracker at https://github.com/dagolden/dancer2-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/dancer2-plugin-queue-mongodb
git clone git://github.com/dagolden/dancer2-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 Dancer2::Plugin::Queue::MongoDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Plugin::Queue::MongoDB
CPAN shell
perl -MCPAN -e shell install Dancer2::Plugin::Queue::MongoDB
For more information on module installation, please visit the detailed CPAN module installation guide.