docker compose -f /opt/mailcow-dockerized/docker-compose.yml exec redis-mailcow redis-cli DBSIZE

Category: Mail Servers & Postfix

docker compose -f /opt/mailcow-dockerized/docker-compose.yml exec redis-mailcow redis-cli DBSIZE

Count keys stored in Redis

DBSIZE returns the number of keys in the default database, a quick health signal for the Redis instance. A sudden drop suggests Redis restarted and statistics were lost. Sudden growth can mean a runaway counter or queue.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.