Memcache cache data on the php development server

Source: Internet
Author: User
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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.