Single process
- A single-process model to deal with client requests, read and write in response to an event
- Epoll by encapsulation of the function to do. CPU utilization can significantly improve the procedure in the case of a large number of concurrent connections, only a small number of active
- redis actual processing speed totally dependent on the efficiency of the primary process
The default database 16, similar to the array index starts from 0, the initial default library 0
select command to switch database
select 6
No. 7 is switched to the library (subscript 0 start)
dbsize
View the current number of key database
keys *
Lists the current key
clear
Support clear screen
flushdb
Empty current library
flushall
Clear All libraries
Unified password management, 16 libraries are the same password, or are OK, or a Rom
redis indexes are from 0
The default port 6379
Reproduced in: https: //www.jianshu.com/p/add3f48c6d75