lib/stats/helpers.rb
# Returns the current Redis connection.  A default connection will be made
# if one doesn't yet exist.
Returns the current Redis connection.  A default connection will be made
if one doesn't yet exist.
Returns the current Redis connection . A default connection will be made if one doesn ' t yet exist .
def redis
      return @redis if @redis
      self.redis = 'redis://127.0.0.1:6379/0'
      self.redis
    end
def redis return @redis if @redis self . redis = 'redis://127.0.0.1:6379/0' self . redis end
Returns the current Redis connection.
Returns the current Redis connection .