Rachel
Toggle table of contents
3.5.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.cs.server-engine
/
love.yinlin.cs.service
/
Redis
Redis
class
Redis
Members
Types
Config
Link copied to clipboard
@
Serializable
data
class
Config
(
val
host
:
String
=
"localhost"
,
val
port
:
Int
=
6379
,
val
password
:
String
=
""
,
val
timeoutMillis
:
Int
=
3000
,
val
maxTotal
:
Int
=
20
,
val
maxIdle
:
Int
=
20
,
val
minIdle
:
Int
=
5
)
Functions
close
Link copied to clipboard
fun
close
(
)
get
Link copied to clipboard
operator
fun
get
(
key
:
String
)
:
String
?
remove
Link copied to clipboard
fun
remove
(
key
:
String
)
set
Link copied to clipboard
operator
fun
set
(
key
:
String
,
value
:
String
)
setex
Link copied to clipboard
fun
setex
(
key
:
String
,
value
:
String
,
seconds
:
Long
)