Memcached Tutorial
Memcached is a free and open-source, high-performance, distributed memory object caching system.
Memcached was originally developed by Brad Fitzpatric of Danga Interactive, a company under LiveJournal, and is now a critical factor in enhancing the scalability of web applications for services like mixi, hatena, Facebook, Vox, LiveJournal, and more.
Memcached is an in-memory key-value store for small arbitrary data (strings, objects) which can be the results of database calls, API calls, or page rendering.
Memcached is simple yet powerful. Its design facilitates rapid development, eases development challenges, and addresses many issues associated with large-scale caching. Its API is compatible with most popular programming languages.
At its core, it is a simple key-value storage system.
The primary use is to cache database query results, reducing database access frequency, thereby enhancing the speed and scalability of dynamic web applications.
Memcached Official Website: https://memcached.org/
Features
As a high-speed distributed caching server, memcached has the following characteristics:
- Simple protocol
- Event handling based on libevent
- Built-in memory storage
- Distributed without inter-communication
Supported Languages
Many languages have client libraries for connecting to memcached, with Perl and PHP being predominant. Languages listed on the memcached website include:
- Perl
- PHP
- Python
- Ruby
- C#
- C/C++
- Lua
- And more
Memcached Users
- LiveJournal
- Wikipedia
- Flickr
- Bebo
- Typepad
- Yellowbot
- Youtube
- WordPress.com
- Craigslist
- Mixi