1, Memcached Introduction
Memcached is a high-performance distributed memory object caching system that improves access performance for dynamic, database-driven applications by caching data and objects in memory to reduce the number of times a database is read. Memcached is based on a hashmap that stores key-value pairs, and its daemon is written in C, but the client can write in any language and communicate with the daemon through the memcached protocol!
Characteristics of memcached
The protocol is simple: server and client communication does not use complex XML format, but is based on text line protocol
Libevent-based event handling: Libevent is a library that encapsulates the event processing capabilities of each operating system into a unified interface, regardless of how many machines can perform their high-performance benefits
Built-in memory storage: The data is stored in its own memory storage space, because the data only exists in memory, the service once restarted, the data will be all lost, in addition, the data reached a certain value, based on the LBU algorithm automatically delete unused cache, regardless of data persistence problem
Distributed without communication: The server side does not have distributed functionality, and "distributed" depends entirely on the client's implementation
2, memcached installation
Step one: Download memcached for Windows stable, unzip, put the Memcached.exe file into the letter you want to store, such as C:\Windows\System32
Step two: Run as Administrator command: c:\windows\system32\memcached.exe-d install
Step three: Start the service command: c:\windows\system32\memcached.exe-d start
memcached Introduction to Windows Environment installation