This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install matthewrudy-rudeq
rudeq /
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Thu Jun 19 05:45:25 -0700 2008 | [matthewrudy] |
| |
README | Thu Aug 07 13:57:12 -0700 2008 | [matthewrudy] |
| |
Rakefile | Thu Jun 19 05:45:25 -0700 2008 | [matthewrudy] |
| |
generators/ | Thu Jun 19 05:45:25 -0700 2008 | [matthewrudy] |
| |
lib/ | Thu Aug 07 14:52:48 -0700 2008 | [matthewrudy] |
| |
performance/ | Fri Jul 25 06:44:28 -0700 2008 | [matthewrudy] |
| |
rdoc/ | Thu Aug 07 14:52:48 -0700 2008 | [matthewrudy] |
| |
rudeq.gemspec | Sat Jun 21 10:30:03 -0700 2008 | [matthewrudy] |
| |
spec/ | Thu Aug 07 14:52:48 -0700 2008 | [matthewrudy] |
| |
tasks/ | Thu Jul 17 04:12:44 -0700 2008 | [matthewrudy] |
README
== Author Matthew Rudy Jacobs == Contact MatthewRudyJacobs@gmail.com RudeQ ============= A simple DB based queue, designed for situations where a server based queue is unnecessary. INSTALL ============ This plugin requires Rails 2.* currently, and has only been tested on MySQL. On rails 2.1 you can install straight from github: ruby script/plugin install git://github.com/matthewrudy/rudeq.git Else just check it out into your plugins directory: git clone git://github.com/matthewrudy/rudeq.git vendor/plugins/rudeq USAGE ============ After you've installed it just run rake queue:setup matthew@iRudy:~/code/jbequeueing $ rake queue:setup (in /Users/matthew/code/jbequeueing) exists app/models/ exists spec/fixtures/ exists spec/models/ create app/models/rude_queue.rb create spec/fixtures/rude_queues.yml create spec/models/rude_queue_spec.rb exists db/migrate create db/migrate/029_create_rude_queues.rb and you're done. Fully tested, fully index... BOOM! Now run migrations, start up a console, and; RudeQueue.set(:queue_name, RandomObject) RudeQueue.get(:queue_name) And, to keep the queue running fast, set up a cron job to run rake queue:cleanup the cleanup will remove any queued items which have been processed longer than an hour ago. rake queue:cleanup CLEANUP_TIME=86,400 will clear processed queue items processed longer than 86,400 seconds ago (1 day) Try Yourself! Copyright (c) 2008 [Matthew Rudy Jacobs Email: MatthewRudyJacobs@gmail.com], released under the MIT license




