Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crog
v0.0.2
Crog
Daemon
Listener
Options
RedisCache
Result
Settings
UriEntity
Generated using Crystal 1.14.0
2024-11-26 10:51:23 UTC
class
Crog::
RedisCache
Crog::RedisCache
Reference
Object
Defined in:
redis_cache.cr
Constant Summary
Log
=
::
Log
.
for
(
"cache"
)
Constructors
.new
(host : String, port : Int32)
Instance Method Summary
#get
(key : String)
#set
(key : String, value : String, ttl : Int32 =
3600
)
Constructor Detail
def self.
new
(host : String, port : Int32)
#
[
View source
]
Instance Method Detail
def
get
(key : String)
#
[
View source
]
def
set
(key : String, value : String, ttl : Int32 =
3600
)
#
[
View source
]