Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
lucky_cache
v0.1.1
LuckyCache
BaseStore
CacheKey
Cachable
CachableTypes
CacheItem
HabitatSettings
HtmlHelpers
MemoryStore
NullStore
Built with Crystal 1.9.2
2023-10-08 13:42:25 UTC
struct
LuckyCache::CacheItem
LuckyCache::CacheItem
Struct
Value
Object
Defined in:
lucky_cache/cache_item.cr
Constructors
.new
(value : CachableTypes, expires_in : Time::Span)
Instance Method Summary
#expired?
#expires_in
: Time::Span
#value
: CachableTypes
Constructor Detail
def self.
new
(value :
CachableTypes
, expires_in : Time::Span)
#
[
View source
]
Instance Method Detail
def
expired?
#
[
View source
]
def
expires_in
: Time::Span
#
[
View source
]
def
value
:
CachableTypes
#
[
View source
]