lib/seymour/redis.rb
## Courtesy of resque
# Returns the current Redis connection. If none has been created, will
# create a new one.
Courtesy of resque
Returns the current Redis connection. If none has been created, will
create a new one.
Courtesy of resque Returns the current Redis connection . If none has been created will create a new one .
def redis
    return @redis if @redis
    self.redis = ::Redis.respond_to?(:connect) ? ::Redis.connect : "localhost:6379"
    self.redis
  end
def redis return @redis if @redis self . redis = :: Redis . respond_to? ( :connect ) ? :: Redis . connect : "localhost:6379" self . redis end
Courtesy of resque
Returns the current Redis connection.
Courtesy of resque Returns the current Redis connection .