Memcached Tutorial


Memcached is a free and open source, high-performance, distributed memory object caching system.

Memcached is a software developed by Brad Fitzpatric of Danga Interactive, a subsidiary of LiveJournal. Now it has become an important factor in improving the scalability of Web applications in many services such as mixi, hatena, Facebook, Vox, LiveJournal and so on.

Memcached is a memory-based key-value storage used to store small pieces of arbitrary data (strings, objects). This data can be the result of database calls, API calls, or page rendering.

Memcached is simple and powerful. Its simple design facilitates rapid development, reduces development difficulty, and solves many problems of large data caching. Its API is compatible with most popular development languages.

Essentially, it is a simple key-value storage system.

The general purpose of use is to reduce the number of database accesses by caching database query results to increase the speed and scalability of dynamic web applications.

web_6.jpg

Memcached official website: http://memcached.org/.


Features

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

  • Simple protocol

  • Event processing based on libevent

  • Built-in memory storage method

  • memcached distributed without communicating with each other

Supported languages

Many All languages ​​have implemented clients to connect to memcached, with Perl and PHP being the main ones. Only those listed on the memcached website are:

  • Perl

  • PHP

  • Python

  • Ruby

  • C

  • C/C++

  • Lua

  • ##Wait


##Memcached User

    LiveJournal
  • Wikipedia
  • ##Flickr
  • Bebo
  • Twitter
  • ##Typepad

  • Yellowbot

  • Youtube

  • WordPress.com

  • Craigslist

  • Mixi