Count the keys in a Redis database
how many keys in redis | redis database size | number of entries in object cache | redis | redis-cli | keysredis-cli -n 0 DBSIZEReturns the number of keys in the database selected with -n as a single number. DBSIZE only reads an internal counter, so it finishes instantly even with millions of keys. Handy for comparing before and after a cache flush or a plugin change.
Also searched as
- how many keys in redis
- redis database size
- number of entries in object cache