lib/raidis.rb
def connected?(identifier = :default)
    return unavailable!(identifier) unless redises[identifier]
    @redises[identifier].setex(:raidis, 1, :rocks) && available!

  rescue Raidis::ConnectionError
    unavailable! identifier
  end
# Public: Updates the #available? flag by actually testing the Redis connection.
#
# Returns true or false.
#
Updates the #available. flag by actually testing the Redis connection.
Returns true or false.
Updates the #available . flag by actually testing the Redis connection . Returns true or false .
def connected?(identifier = :default)
    return unavailable!(identifier) unless redises[identifier]
    @redises[identifier].setex(:raidis, 1, :rocks) && available!
  rescue Raidis::ConnectionError
    unavailable! identifier
  end
def connected? ( identifier = :default ) return unavailable! ( identifier ) unless redises [ identifier ] @redises [ identifier ] . setex ( :raidis , 1 , :rocks ) && available! rescue Raidis :: ConnectionError unavailable! identifier end
Public: Updates the #available?
Public : Updates the #available?
identifier