I start two process,one process will get lock and another will block,and I kill -9 one process,another process will block and start new process will block too, you need delete the redis lock key...
That sounds like the correct behaviour, you need to wait for the key to timeout before the other process can acquire it. if you want more precise control you'll need to use an external tool.
I start two process,one process will get lock and another will block,and I kill -9 one process,another process will block and start new process will block too, you need delete the redis lock key...