It is necessary to do below operation if one of the redis client machines was killed without notice ( power off ) or network problems occurred. It also applies if the master was restarted without protection (freeze).
It often produces deadlock by 2 requests that are both waiting for lock. If so, then apply the following procedure.
login on redis server,and run as below
$ /usr/local/bin/redis-server /etc/redis/6379.conf
OR
/usr/local/bin/redis-cli
127.0.0.1:6379>
keys *
1) "token_1"
2) "token_2"
3) "token_3"
get token_3
"649427249a9e11e5ae730050568b75b9"
del token_3
(integer) 1
Means that a value was deleted,you should get this value.
(integer) 0
Means that no value was deleted.