Class: ActiveSupport::Cache::DbItem
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ActiveSupport::Cache::DbItem
- Defined in:
- lib/active_support/cache/db_item.rb
Constant Summary collapse
- TABLE_NAME =
'db_cache_store_items'
Instance Method Summary collapse
Instance Method Details
#entry ⇒ Object
10 11 12 13 |
# File 'lib/active_support/cache/db_item.rb', line 10 def entry serialized_value = attributes['entry'] YAML.load(serialized_value) if serialized_value end |
#expired? ⇒ Boolean
19 20 21 |
# File 'lib/active_support/cache/db_item.rb', line 19 def expired? entry.expired? end |
#value ⇒ Object
15 16 17 |
# File 'lib/active_support/cache/db_item.rb', line 15 def value entry.value end |