This class is used to represent cache entries. Cache entries have a value, an optional expiration time, and an optional version. The expiration time is used to support the :race_condition_ttl option on the cache. The version is used to support the :version option on the cache for rejecting mismatches.

Since cache entries in most instances will be serialized, the internals of this class are highly optimized using short instance variable names that are lazily defined.

Constants

DEFAULT_COMPRESS_LIMIT = 1.kilobyte

Attributes

[R] version
Show files where this class is defined (1 file)
Register or log in to add new notes.