Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
memory_cache
v0.4.1
MemoryCache
Entry
Built with Crystal 1.9.2
2023-10-08 11:33:21 UTC
struct
MemoryCache::Entry(V)
MemoryCache::Entry(V)
Struct
Value
Object
Defined in:
memory_cache.cr
Constructors
.new
(value : V, expired_at : Time | Nil =
nil
)
Instance Method Summary
#expired?
(now =
Time
.local)
#expired_at
#value
Constructor Detail
def self.
new
(value : V, expired_at : Time | Nil =
nil
)
#
[
View source
]
Instance Method Detail
def
expired?
(now =
Time
.local)
#
[
View source
]
def
expired_at
#
[
View source
]
def
value
#
[
View source
]