Module: Peons

Defined in:
lib/peons.rb

Defined Under Namespace

Classes: Queue

Constant Summary collapse

VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.[](key) ⇒ Object



51
52
53
# File 'lib/peons.rb', line 51

def self.[](key)
  Queue.new(:peons, redis)[key]
end

.redisObject



55
56
57
# File 'lib/peons.rb', line 55

def self.redis
  threaded[:redis] ||= Redis.connect
end

.redis=(redis) ⇒ Object



59
60
61
# File 'lib/peons.rb', line 59

def self.redis=(redis)
  threaded[:redis] = redis
end