Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
cachivache
master
Cachivache
Cache
Entry
Generated using Crystal 1.14.0
2024-11-26 08:52:13 UTC
struct
Cachivache::
Cache::
Entry
Cachivache::Cache::Entry
Struct
Value
Object
Defined in:
cachivache.cr
Constructors
.new
(value : String, expiration : Time | Nil)
Instance Method Summary
#expiration
: Time?
#expired?
(now =
Time
.new)
#value
: String
Constructor Detail
def self.
new
(value : String, expiration : Time | Nil)
#
[
View source
]
Instance Method Detail
def
expiration
: Time?
#
[
View source
]
def
expired?
(now =
Time
.new)
#
[
View source
]
def
value
: String
#
[
View source
]