3 explanation of miscellaneous basic knowledge after Redis is started
-
3.1 single process
-
3.2 Default 16 databases, similar to the array table starting from zero, the initial default use of zero library
Set the number of databases. Default is 0. You can specify the database ID on the connection using the SELECT command
databases 16
-
3.3 Using the select command to switch a database
-
3.4 DBsize Displays the number of keys in the current database
-
3.5 flushdb: flushes the current database
-
3.6 Flushall; Kill all libraries
-
3.7 Unified password management, 16 libraries have the same password, either all OK or none of them can be connected
-
3.8 Redis indexes are all started from scratch