In Files

Methods

Included Modules

Moneta::StringExpires

Public Instance Methods

check_expired(key) click to toggle source
# File lib/moneta.rb, line 51
def check_expired(key)
  if @expiration[key] && Time.now > Time.at(@expiration[key].to_i)
    @expiration.delete(key)
    delete(key)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.