class Redis::Store

Constants

VERSION

Public Class Methods

new(options = { }) click to toggle source
Calls superclass method
# File lib/redis/store.rb, line 8
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 14
def reconnect
  @client.reconnect
end
to_s() click to toggle source
# File lib/redis/store.rb, line 18
def to_s
  "Redis Client connected to #{@client.host}:#{@client.port} against DB #{@client.db}"
end

Private Instance Methods

_extend_marshalling(options) click to toggle source
# File lib/redis/store.rb, line 23
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 28
def _extend_namespace(options)
  @namespace = options[:namespace]
  extend Namespace if @namespace
end