toggle menu
krate
1.0.3
jvm
switch theme
search in API
krate-storage-redis
/
com.neutrine.krate.storage.redis
/
RedisStateStorage
Redis
State
Storage
class
RedisStateStorage
(
val
host
:
String
,
val
port
:
Int
)
:
StateStorage
A
StateStorage
implementation using Redis.
Parameters
host
The Redis host.
port
The Redis port.
Members
Constructors
Redis
State
Storage
Link copied to clipboard
constructor
(
host
:
String
,
port
:
Int
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
host
Link copied to clipboard
val
host
:
String
port
Link copied to clipboard
val
port
:
Int
Functions
compare
And
Set
Link copied to clipboard
open
suspend override
fun
compareAndSet
(
key
:
String
,
compareAndSetFunction
:
(
current
:
BucketState
?
)
->
BucketState
)
get
Bucket
State
Link copied to clipboard
open
override
fun
getBucketState
(
key
:
String
)
:
BucketState
?