class ActiveSupport::Cache::Entry

def expires_at=(value)

def expires_at=(value)
  if value
    @expires_in = value.to_f - @created_at
  else
    @expires_in = nil
  end
end