Class: ActiveSupport::Cache::DbItem

Inherits:
ActiveRecord::Base
  • Object
show all
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

#entryObject



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

Returns:

  • (Boolean)


19
20
21
# File 'lib/active_support/cache/db_item.rb', line 19

def expired?
  entry.expired?
end

#valueObject



15
16
17
# File 'lib/active_support/cache/db_item.rb', line 15

def value
  entry.value
end