Linux(9~)

Redis, Memcache Introduction and Installation

   Now talk about a relatively new service ------- caching service, generally written program will directly access the database connection for data update operations, but in a relatively large site, it is the carrying capacity of the database certain metaphor can withstand one thousand or ten thousand concurrent requests, if the site is larger than the request, to all requests to connect to the database the database will bring pressure and even crash the database.

  Cache services are redis and memcrched, redis is a new show from behind the. On the key-value areas of the two no difference, redis richer data types supported its effect is quite good.

 

 

 

Installed so many services what use is it? Shaoanwuzao do a program development time is to have a lot of support services, this time only write business code can be connected to the service, such as: nginx and apache server is to provide a web page parsing, memcached for data cache, mysql is for the purpose of storing data. Behind these different kinds of services, there will be, how to connect to the database in php which explain how to use, how to connect memcached, redis service.

Install memcached:

 

Start memcached:

 

 

 

 

From the primary backup data pattern

 

 

Redis basic operations

git version management tool (on)

git version management tool (under)

Guess you like

Origin www.cnblogs.com/djlindex/p/11612702.html