Class | ActiveSupport::Cache::Entry |
In: |
lib/active_support/cache.rb
|
Parent: | Object |
Entry that is put into caches. It supports expiration time on entries and can compress values to save space in the cache.
DEFAULT_COMPRESS_LIMIT | = | 16.kilobytes |
created_at | [R] | |
expires_in | [R] |
Create an entry with internal attributes set. This method is intended to be used by implementations that store cache entries in a native format instead of as serialized Ruby objects.
Check if the entry is expired. The expires_in parameter can override the value set when the entry was created.