Memcached course

Memcached Is a free and open source , High performance , Distributed memory object caching system .

Memcached So LiveJournal those under one's command Danga Interactive The company's Brad Fitzpatric First developed a software . Now it has become mixi、hatena、Facebook、Vox、LiveJournal And many other services Web An important factor in application scalability .

Memcached Is a memory based key-value Store , Used to store small pieces of arbitrary data ( character string 、 Object ). These data can be database calls 、API Call or the result of page rendering .

Memcached Simple and powerful . Its simple design is convenient for rapid development , Reduce development difficulty , It solves many problems of large data cache . its API Compatible with most popular development languages .

Essentially , It is a concise key-value Storage system .

The general purpose of use is , By caching database query results , Reduce the number of database accesses , To improve dynamic performance Web Speed of application 、 Improve scalability .


Memcached Official website :


memcached As a high-speed distributed cache server , It has the following characteristics .

  • The agreement is simple
  • be based on libevent Event handling
  • Built in memory storage
  • memcached Distributed systems that do not communicate with each other

Supported languages

Many languages implement connections memcached My client , Of which Perl、PHP Mainly . Just memcached Listed on the website are :

  • Perl
  • PHP
  • Python
  • Ruby
  • C#
  • C/C++
  • Lua
  • wait

Memcached user

  • LiveJournal
  • Wikipedia
  • Flickr
  • Bebo
  • Twitter
  • Typepad
  • Yellowbot
  • Youtube
  • Craigslist
  • Mixi