🔴 Redis
Beginner
What does the Redis INFO command return?
Answer
The INFO command returns a large block of key-value statistics about the Redis server, organized into sections. Key sections: server (Redis version, OS, uptime), clients (number of connected clients, blocked clients), memory (used_memory, max_memory, memory fragmentation ratio — critical for capacity planning), stats (total_commands_processed, keyspace_hits, keyspace_misses — use misses/hits to calculate cache hit rate), replication (role: master/replica, connected replicas, replication lag), keyspace (per-database key counts with TTL statistics). You can request a specific section: INFO memory or INFO replication. This is the first command to run when diagnosing Redis performance or capacity issues.