class ActiveSupport::Cache::Entry
def expired?
Checks if the entry is expired. The +expires_in+ parameter can override
def expired? @expires_in && @created_at + @expires_in <= Time.now.to_f end
def expired? @expires_in && @created_at + @expires_in <= Time.now.to_f end