struct

Wraith::HashEntry(V)

Inherits MessagePack::Serializable / Struct / Value / Object

Wraps Hash values. Each entry has a value and expiration.

Constructors

new(value : V, ttl : Time::Span | Nil)
Source
new(pull : MessagePack::Unpacker)
Source

Instance methods

expired?

Checks if the entry is expired.

Source
expires_at
Source
expires_in_ms
Source
has_expiration?
Source
update_expiration(ttl : Time::Span | Nil)
Source
value
Source
value=(value : V)
Source