Symptom
You notice an increasing command count for your Redis database in the Upstash Console, even when there are no connected clients.Diagnosis
The Upstash Console interacts with your Redis database to provide its functionality, which can result in an increased command count. This behavior is normal and expected. Here’s a breakdown of why this occurs:-
Data Browser functionality:
The Data Browser tab sends various commands to list and display your keys, including:
- SCAN: To iterate through the keyspace
- GET: To retrieve values for keys
- TTL: To check the time-to-live for keys
- Rate Limiting check: The Console checks if your database is being used for Rate Limiting. This involves sending EXISTS commands for rate limiting-related keys.
- Other Console features: Additional features in the Console may send commands to your database to retrieve or display information.