lib/redismetrics/client.rb
# Return the retention time in seconds for the metric +key+.
Return the retention time in seconds for the metric +key+.
Return the retention time in seconds for the metric + key + .
def retention(key:)
    duration = retention_for_key(key)
    if duration.zero?
      Float::INFINITY
    else
      duration / MS
    end
  end
def retention ( key : ) duration = retention_for_key ( key ) if duration . zero? Float :: INFINITY else duration / MS end end
Return the retention time in seconds for the metric +key+.
Return the retention time in seconds for the metric + key + .
key