Here are some of the identified suffixes for the keys you will find in Redis and the values they hold:
:id
- this key references the progression of the job ID. It is used to generate the next job ID:stalled-check
- the time (probably of insertion) of the last stalled job:completed
- the ids of completed jobs:failed
- the ids of failed jobs
Some examples of the (full) keys you will find in Redis:
- "SyfqZ5J89Kxw4eOX:transfer
:stalled-check
" - "tgURfiHK6N:notification
:id
" - "tgURfiHK6N:notification
:2
" - "tgURfiHK6N:funding
:id
" - "tgURfiHK6N:transfer
:stalled-check
" - "tgURfiHK6N:notification
:failed
" - "SyfqZ5J89Kxw4eOX:webhook
:stalled-check
" - "SyfqZ5J89Kxw4eOX:funding
:stalled-check
" - "tgURfiHK6N:webhook
:stalled-check
"
From the above, you can tell that the keys are in this format:
<QUEUE_PREFIX>:<QUEUE_NAME>:<SUFFIX>
To know the type of a key, use the TYPE
command:
redis-cli
TYPE tgURfiHK6N:notification:failed
If the key exists, it will return the type of the key, otherwise it will return none
.
Here are some of the types you will find:
string
- the value is a stringzset
- the value is a sorted set of stringshash
- the value is a hash map of strings to strings
- To get the contents of a
string
key, use theGET
command:
GET tgURfiHK6N:notification:failed
- To get the contents of a
zset
key, use theZRANGE
command:
ZRANGE tgURfiHK6N:notification:failed 0 -1
- To get the contents of a
hash
key, use theHGETALL
command:
HGETALL tgURfiHK6N:notification:failed