Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
dude
v2.0.0
Dude
Memory
Entry
Transaction
Redis
Key
Transaction
Store
Transaction
Generated using Crystal 1.12.2
2024-08-07 06:55:50 UTC
struct
Dude::
Memory::
Entry
Dude::Memory::Entry
Struct
Value
Object
Defined in:
dude/memory.cr
Constructors
.new
(value : String, expire : Time | Nil)
.new
(value, expire : Time::Span)
Instance Method Summary
#expire
: Time | Nil
#expired?
: Bool
#value
: String
Constructor Detail
def self.
new
(value : String, expire : Time | Nil)
#
[
View source
]
def self.
new
(value, expire : Time::Span)
#
[
View source
]
Instance Method Detail
def
expire
: Time | Nil
#
[
View source
]
def
expired?
: Bool
#
[
View source
]
def
value
: String
#
[
View source
]