class RedisConnection
Initialize a connection to Redis. Currently the path to redis socket is hardcoded (/tmp/redis.sock), as well as the driver (:hiredis). global variable $redis gets set.
Attributes
redis[R]
Public Class Methods
new(*args)
click to toggle source
# File lib/redis_connection.rb, line 15 def initialize *args #@key= key $redis ||= Redis.new(:path => "/tmp/redis.sock",:driver => :hiredis) @redis = $redis #puts green "Connected to Redis" end