Sha256: 05c7558d91b44ead9dcd2730565d5619272ec80a336a2adb6701fe4836a9ef0f
Contents?: true
Size: 529 Bytes
Versions: 1
Compression:
Stored size: 529 Bytes
Contents
module Counter module Cache module Credis class RedisCli config = YAML.load_file("./config/redis.yml")[Rails.env] if config REDISCLI = Redis.new(:host => config['redis_host'], :port => config['redis_port'], namespace: config['redis_namespace'], :db => config['redis_db']) else REDISCLI = Redis.new end def method_missing(meth, *args, &blk) REDISCLI.send(meth, *args, &blk) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
counter-cache-credis-0.0.6 | lib/counter/cache/credis/redis_cli.rb |