Class: Qup::Adapter::Redis
- Inherits:
-
Qup::Adapter
- Object
- Qup::Adapter
- Qup::Adapter::Redis
- Defined in:
- lib/qup/adapter/redis.rb,
lib/qup/adapter/redis/queue.rb,
lib/qup/adapter/redis/topic.rb,
lib/qup/adapter/redis/connection.rb
Overview
Internal: The backing adapter for Qup that uses Redis as the messaging infrastructure
Defined Under Namespace
Classes: Connection, Queue, Topic
Instance Method Summary collapse
-
#close ⇒ Object
Internal: Close the Redis adapter.
-
#closed? ⇒ Boolean
Internal: Is the Redis Adapter closed.
-
#initialize(uri, options = {}) ⇒ Redis
constructor
Internal: Create a new Redis Adapter.
-
#queue(name) ⇒ Object
Internal: Create a new Queue from this Adapter.
-
#topic(name) ⇒ Object
Internal: Create a new Topic from this Adapter.
Methods inherited from Qup::Adapter
Constructor Details
#initialize(uri, options = {}) ⇒ Redis
Internal: Create a new Redis Adapter
uri - the URI instance for this adapter to use
15 16 17 18 19 |
# File 'lib/qup/adapter/redis.rb', line 15 def initialize( uri, = {} ) @uri = uri @options = @closed = false end |
Instance Method Details
#close ⇒ Object
Internal: Close the Redis adapter
Return nothing
42 43 44 |
# File 'lib/qup/adapter/redis.rb', line 42 def close @closed = true end |
#closed? ⇒ Boolean
Internal: Is the Redis Adapter closed
Returns true or false
49 50 51 |
# File 'lib/qup/adapter/redis.rb', line 49 def closed? @closed end |