class Redis::Store
Constants
- VERSION
Public Class Methods
new(options = { })
click to toggle source
Calls superclass method
# File lib/redis/store.rb, line 9 def initialize(options = { }) super _extend_marshalling options _extend_namespace options end
Public Instance Methods
reconnect()
click to toggle source
# File lib/redis/store.rb, line 15 def reconnect @client.reconnect end
to_s()
click to toggle source
# File lib/redis/store.rb, line 19 def to_s h = @client.host "Redis Client connected to #{/:/ =~ h ? '['+h+']' : h}:#{@client.port} against DB #{@client.db}" end
Private Instance Methods
_extend_marshalling(options)
click to toggle source
# File lib/redis/store.rb, line 25 def _extend_marshalling(options) @marshalling = !(options[:marshalling] === false) # HACK - TODO delegate to Factory extend Marshalling if @marshalling end
_extend_namespace(options)
click to toggle source
# File lib/redis/store.rb, line 30 def _extend_namespace(options) @namespace = options[:namespace] extend Namespace if @namespace end