Skip to content

Instantly share code, notes, and snippets.

@shishirmk
Created August 30, 2012 22:34
Show Gist options
  • Select an option

  • Save shishirmk/3543348 to your computer and use it in GitHub Desktop.

Select an option

Save shishirmk/3543348 to your computer and use it in GitHub Desktop.
RedisWrapper class.
class RedisWrapper
attr_accessor :client
def initialize
begin
@c = Redis.new(:host => "localhost")
rescue
return false
end
@client = Redis::Namespace.new(:perfdata, :redis => @c)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment