Open Sidebar
Close Sidebar
lucky_cache
main
LuckyCache
BaseStore
CacheKey
Cacheable
CacheableTypes
CacheItem
HabitatSettings
HtmlHelpers
MemoryStore
NullStore
struct
LuckyCache::
CacheItem
LuckyCache::CacheItem
Struct
Value
Object
Defined in:
lucky_cache/cache_item.cr
Constructors
.new
(value : CacheableTypes, expires_in : Time::Span)
Instance Method Summary
#expired?
#expires_in
: Time::Span
#value
: CacheableTypes
Constructor Detail
def self.
new
(value :
CacheableTypes
, expires_in : Time::Span)
#
[
View source
]
Instance Method Detail
def
expired?
#
[
View source
]
def
expires_in
: Time::Span
#
[
View source
]
def
value
:
CacheableTypes
#
[
View source
]