BigTon
BigTon

Reputation: 137

Redis.blPop: How check how many process wait 'key'?

I am use PhpRedis

$redis->blPop('key', 10);

How check how many process wait 'key'?

$redis->blPopCountWait('key'); => 30

Thank you!

Upvotes: 0

Views: 191

Answers (1)

Itamar Haber
Itamar Haber

Reputation: 50052

There is no way to do that in Redis.

The closest you can get is running CLIENT LIST and filter the reply by 'cmd=blpop', but this will not tell you the actual key(s) each connection is blocking on.

Upvotes: 1

Related Questions