Memcached tutorial provides basic and advanced concepts of Memcached. Our Memcached tutorial is designed for beginners and professionals.
Memcached is a free, open-source, high-performance, distributed memory object caching system. Memcached is used to speed up dynamic web applications by reducing the database load. Memcached is used by all the major websites having huge data for example, YouTube, Wikipedia, Twitter etc.
Here, you will learn What is Memcached, History of Memcached, Components of Memcached, Features of Memcached, Disadvantages of Memcached, How Does Memcached Work, Installation Process of Memcached, Memcached Storage Commands, How to set, get, replace, delete data in Memcached etc.
What is Memcached?
Memcached is pronounced as mem-cash-dee or mem-cached. It is a free, open-source, high-performance, distributed memory object caching system. Memcached is used to speed up dynamic web applications by reducing the database load. Memcached is used by all the major websites having huge data for example, YouTube, Wikipedia, Twitter etc.
Memcached is used in memory caching software because it is very easy to install on any Windows or Unix system. It offers API integration for all the major languages like PHP, Java, C/C++, Python, Ruby, Perl etc.
It stores the data based on key values for small arbitrary strings or objects including:
History of Memcached
Memcached was originally developed by Brad Fitzpatrick from Danga Interactive for LiveJournal in 2003. It was written is Perl, but is rewritten in C by Anatoly Vorobey.
Components of Memcached
Memcached is made up of 4 main components. These components allow the client and the server to work together in order to deliver cached data as efficiently as possible:.
Features of Memcached
Disadvantages of Memcached
How does Memcached Work?
As mentioned above, Memcached has four main components and these components are what allow it to store and retrieve data. Each item is comprised of a key, expiration time, and raw data. At a high-level Memcached works as follows:
This setup has various Memcached servers and many clients. Clients use a hasing algorithm to determine memcahed storage server for use. This helps to distribute the load.
And then server computes a second hash of the key in order to determine where it should store the corresponding value in an internal hash table. Some important things about Memcached architecture are:
Memcached Tutorial Index
Before learning Memcached, you should have basic knowledge of data structure and the working of cache.
Our Memcached tutorial is designed for beginners and professionals.
We assure you that you will not find any problem in this Memcached Tutorial. But if there is any mistake, please post the problem in the contact form.