Class: Redis::PooledStore
- Includes:
- Store::Interface, Store::Ttl
- Defined in:
- lib/redis/pooled_store.rb
Instance Attribute Summary
Attributes included from Pools::Pooled
#connection_pool, #preparation_chain
Class Method Summary collapse
-
.rails3? ⇒ Boolean
:nodoc:.
Instance Method Summary collapse
-
#initialize(options = { }) ⇒ PooledStore
constructor
A new instance of PooledStore.
- #to_s ⇒ Object
Methods inherited from Pooled
Methods included from Pools::Pooled
#__connection, #__disconnect, #__prepare, #with_connection
Constructor Details
#initialize(options = { }) ⇒ PooledStore
8 9 10 11 |
# File 'lib/redis/pooled_store.rb', line 8 def initialize( = { }) super _extend_marshalling end |
Class Method Details
.rails3? ⇒ Boolean
:nodoc:
13 14 15 |
# File 'lib/redis/pooled_store.rb', line 13 def self.rails3? #:nodoc: defined?(::Rails) && ::Rails::VERSION::MAJOR == 3 end |
Instance Method Details
#to_s ⇒ Object
17 18 19 20 21 |
# File 'lib/redis/pooled_store.rb', line 17 def to_s with_connection do |c| "Redis::Pooled => #{c.host}:#{c.port} against DB #{c.db}" end end |