Zeeshan
Zeeshan

Reputation: 506

what is command to find acl users count in redis db?

I am new to redis db ,I need only count of acl users. If I run below command it will return list of users but i need only count.

command I am running is

ACL LIST

Returns

"user default on nopass ~* &* +@all"

but i need command which will return count e.g 1

Thanks In advance

Upvotes: 0

Views: 1621

Answers (1)

Ankit Sahay
Ankit Sahay

Reputation: 2043

You can run:

redis-cli -h 127.0.0.1 -p 6379 ACL LIST | wc -l

Upvotes: 1

Related Questions