class Ristretta::Configuration
Attributes
namespace[RW]
redis_client[RW]
subject_id_method[RW]
version[RW]
Public Class Methods
new()
click to toggle source
# File lib/ristretta/configuration.rb, line 8 def initialize @version = "1" @namespace = "ristretta" @subject_id_method = :id end
Public Instance Methods
client()
click to toggle source
# File lib/ristretta/configuration.rb, line 14 def client @client ||= Redis::Namespace.new(namespace.to_sym, redis: redis_client) end