class EasyRedis::Redis
Public Class Methods
configure(opts = {})
click to toggle source
# File lib/easy_redis/easy_redis.rb, line 35 def configure(opts = {}) opts.each do |k,v| @@config[k.to_sym] = v if @@valid_config_keys.include? k.to_sym end self.redis = @@config[:redis] if @@config[:redis].present? end
namespace()
click to toggle source
# File lib/easy_redis/easy_redis.rb, line 27 def namespace @@config[:namespace] end
raise_non_existent_object_error?()
click to toggle source
# File lib/easy_redis/easy_redis.rb, line 31 def raise_non_existent_object_error? @@config[:raise_non_existent_object_error] end
redis()
click to toggle source
# File lib/easy_redis/easy_redis.rb, line 19 def redis @@redis end
redis=(redis)
click to toggle source
# File lib/easy_redis/easy_redis.rb, line 23 def redis=(redis) @@redis = redis end