Sha256: 9028d1167dc5be4cb3dffb2dde4bb0f60b7e9dd1ed44c44eb63f242b03860ae5
Contents?: true
Size: 742 Bytes
Versions: 8
Compression:
Stored size: 742 Bytes
Contents
require 'redis/store/ttl' require 'redis/store/interface' class Redis class Store < self include Ttl, Interface def initialize(options = { }) super _extend_marshalling options _extend_namespace options end def reconnect @client.reconnect end def to_s "Redis Client connected to #{@client.host}:#{@client.port} against DB #{@client.db}" end private def _extend_marshalling(options) @marshalling = !(options[:marshalling] === false) # HACK - TODO delegate to Factory extend Marshalling if @marshalling end def _extend_namespace(options) @namespace = options[:namespace] extend Namespace if @namespace end end end
Version data entries
8 entries across 8 versions & 1 rubygems