Class: DbCache

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/active_support/cache/db_cache_store.rb

Instance Method Summary collapse

Instance Method Details

#entryObject



74
75
76
# File 'lib/active_support/cache/db_cache_store.rb', line 74

def entry
  YAML.load(value) unless value.nil?
end

#expired?Boolean

Returns:

  • (Boolean)


78
79
80
# File 'lib/active_support/cache/db_cache_store.rb', line 78

def expired?
  entry && entry.expired?
end