What is Memcached?

Source: Internet
Author: User
Tags apc
What is Memcached? & nbsp; before explaining this problem, we must first know what it is "not ". Many people use it as a storage carrier in the form of SharedMemory. although memcached uses the same "Key & gt; Value" method to organize data

What is Memcached?

Before explaining this question, we must first know what it is "not ". Many people use it as a storage carrier in the form of SharedMemory. although memcached uses the same "Key => Value" method to organize data, however, it is very different from local caches such as shared memory and APC. Memcached is distributed, that is, it is not local. It is based on network connections (of course, it can also use localhost) to complete the service. it is an application-independent program or Daemon process ).


Memcached uses the libevent library to implement network connection services. In theory, it can handle infinite connections, but unlike Apache, it is more stable and persistent connection oriented, therefore, its actual concurrency capability is limited. Under Conservative circumstances, the maximum number of simultaneous connections of memcached is 200, which is related to the Linux thread capability. this value can be adjusted. For more information about libevent, see related documentation. Memcached memory usage is also different from APC. APC is based on shared memory and MMAP. memcachd has its own memory allocation algorithm and management method. it has nothing to do with shared memory and has no restrictions on shared memory. generally, each memcached process can manage 2 GB of memory space. if you need more space, you can increase the number of processes.

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.