Marten::Cache::Entry
Represents a cache entry.
Cache entries are associated with a value, an optional version, and an optional expiration timestamp. These entries are serialized using MessagePack before being written to the cache store: when reading from the cache, entries are "reconstructed" by deserializing the corresponding raw MessagePack binary value.
Constructors
Creates a new cache entry for the specified value and options.
Class methods
Instance methods
Returns true if there is a version mismatch between the entry version and the specified version.