Sha256: e1467f28c2734974fb69fbf5629f9aee4c331643281f6f63e574a4c02ec7ab9b
Contents?: true
Size: 575 Bytes
Versions: 5
Compression:
Stored size: 575 Bytes
Contents
module Counter module Cache module Credis class RedisCli def initialize config = YAML.load_file("./config/redis.yml")[Rails.env] if config @redis ||= Redis.new(:host => config['redis_host'], :port => config['redis_port'], namespace: config['redis_namespace'], :db => config['redis_db']) else @redis ||= Redis.new end end def method_missing(meth, *args, &blk) @redis.send(meth, *args, &blk) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems