Memcache cache data of php development server Memcache, Redis
1. all are used to manage data
2. their data is stored in the memory.
3. Redis can regularly back up data to the disk (persistent)
4. Memcache is a simple key/value cache.
5. Redis not only supports simple key/value data,
It also provides storage of data structures such as list, set, and hash.
For Mysql, if the operation data is:
1. mysql server is required
2. terminals that need to operate mysql databases (such as navicat)
3. the address of the mysql server is required. the port number is 3306 by default)
4. connect to the address and write SQL commands.
5. the server receives commands, operates on the database, and returns data.
The page and client app cannot operate the terminal, so the server script is required.
Redis memcache data operations are similar to mysql database operations.
1. the client connects to the redis memcache server through the address and port number.
2. the client sends the set/get command to the server.
3. the server processes the data in php after receiving the request and returns the data to the database.
Php generates memcache data in Sina sae