API referenceInterfaces
RedisLike
Generated API reference for RedisLike in @kysoql/auth.
@kysoql/auth / RedisLike
Minimal Redis interface required by the Redis refresh-token store.
Methods
get()
get(key): string | Promise<string | null> | null;Reads a string value from Redis.
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
string | Promise<string | null> | null
set()
set(key, value): unknown;Stores a string value in Redis.
Parameters
| Parameter | Type |
|---|---|
key | string |
value | string |
Returns
unknown
del()
del(key): unknown;Deletes a key from Redis.
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
unknown