KtGram
Toggle table of contents
7.8.0
common
Platform filter
common
Switch theme
Search in API
KtGram
ktgram-botctx-redis
/
eu.vendeli.ktgram.botctx.redis.ctx
/
UserDataRedisImpl
User
Data
Redis
Impl
abstract
class
UserDataRedisImpl
(
host
:
String
=
"localhost"
,
port
:
Int
=
6379
)
:
UserData
<
String
>
(
source
)
Members
Constructors
User
Data
Redis
Impl
Link copied to clipboard
constructor
(
host
:
String
=
"localhost"
,
port
:
Int
=
6379
)
Properties
redis
Link copied to clipboard
open
val
redis
:
ReThis
Functions
del
Link copied to clipboard
open
override
fun
del
(
telegramId
:
Long
,
key
:
String
)
del
Async
Link copied to clipboard
open
suspend override
fun
delAsync
(
telegramId
:
Long
,
key
:
String
)
:
Deferred
<
Boolean
>
get
Link copied to clipboard
open
operator override
fun
get
(
telegramId
:
Long
,
key
:
String
)
:
String
?
open
operator
fun
get
(
user
:
User
,
key
:
String
)
:
String
?
get
Async
Link copied to clipboard
open
suspend override
fun
getAsync
(
telegramId
:
Long
,
key
:
String
)
:
Deferred
<
String
?
>
set
Link copied to clipboard
open
operator override
fun
set
(
telegramId
:
Long
,
key
:
String
,
value
:
String
?
)
open
operator
fun
set
(
user
:
User
,
key
:
String
,
value
:
String
?
)
set
Async
Link copied to clipboard
open
suspend override
fun
setAsync
(
telegramId
:
Long
,
key
:
String
,
value
:
String
?
)
:
Deferred
<
Boolean
>