Class: Redis::Store
- Defined in:
- lib/redis/store.rb,
lib/redis/store/ttl.rb,
lib/redis/store/version.rb,
lib/redis/store/interface.rb,
lib/redis/store/namespace.rb,
lib/redis/store/marshalling.rb
Defined Under Namespace
Modules: Interface, Marshalling, Namespace, Ttl, VERSION
Class Method Summary collapse
-
.rails3? ⇒ Boolean
:nodoc:.
Instance Method Summary collapse
-
#initialize(options = { }) ⇒ Store
constructor
A new instance of Store.
- #to_s ⇒ Object
Methods included from Ttl
Methods included from Interface
Constructor Details
#initialize(options = { }) ⇒ Store
Returns a new instance of Store.
5 6 7 8 9 |
# File 'lib/redis/store.rb', line 5 def initialize( = { }) super _extend_marshalling _extend_namespace end |
Class Method Details
.rails3? ⇒ Boolean
:nodoc:
11 12 13 |
# File 'lib/redis/store.rb', line 11 def self.rails3? #:nodoc: defined?(::Rails) && ::Rails::VERSION::MAJOR == 3 end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/redis/store.rb', line 15 def to_s "Redis Client connected to #{@client.host}:#{@client.port} against DB #{@client.db}" end |