redis-semaphore
redis-semaphore copied to clipboard
why doesn't redis-semaphore use sub/pub to notify another one to tryAcquire?
Java's redisson publish a msg when lock is released, so another one will get the msg and tryAcquire again. This method is obviously more time-efficient, why redis-semaphore just supports retrying at intervals?