Sha256: 9764220d494bea25505e6f8e0ed3730ac7c512520a6b5086d78aad2e81e29c03
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
require 'redis' require 'errors/errors' require 'modules/performance_stats' require 'forwardable' module RedisMonitor class Backend extend SingleForwardable def_delegators :redis, :get, :set, :del, :info, :keys, :dbsize def self.config(arguments) @@host = arguments[:redis_host] @@port = arguments[:redis_port] end def self.host @@host end def self.port @@port end def self.redis @@redis ||= Redis.new(:host => host, :port => port) end def self.performance_stats PerformanceStats.new(self).results end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis_monitor-0.0.4 | lib/modules/backend.rb |