Redis database management commands¶
Redis provides several commands for managing the databases within a running instance. The default configuration supports multiple databases, which are indexed by integer.^[600-developer-big-data-redis-redis-01-install.md]
Core Commands¶
Database Selection¶
SELECT index: Switches the connection to a specific database by its index number.^[600-developer-big-data-redis-redis-01-install.md]
Inspection and Data Manipulation¶
DBSIZE: Returns the number of keys stored in the currently selected database.^[600-developer-big-data-redis-redis-01-install.md]FLUSHDB: Clears all keys from the currently selected database.^[600-developer-big-data-redis-redis-01-install.md]FLUSHALL: Clears all keys from every database on the server.^[600-developer-big-data-redis-redis-01-install.md]
Related Concepts¶
- [[Redis]]
- [[Persistence]]
Sources¶
^[600-developer-big-data-redis-redis-01-install.md]