Introduction to Memcached: server side data caching

Written By: Tim Sisson
Experience Level: Intermediate
Articles labeled as Intermediate are those that require tasks to be completed that often require you have an understanding / skill of a more advanced topic beforehand. Intermediate articles may also be tasks that require more than just 2 - 3 minutes of your time, such as setting up an online store. Our Technical Support Department may be able to directly assist, however it is on a case by case basis.
Print E-mail:

Memcached is a server side caching system that is free and open source, and can be installed on any VPS or dedicated server. A caching system can dramatically improve the performance of your website.

How does Memcached work?

Memcached stores the data in the memory and when the data is needed the application checks for the data in the memcache via its daemon. Memcached has the ability to store SQL queries, that way the next time the query is ran, it can return the result from memory.

Sometimes there's confusion over Memcache and Memcached. Memcache is the PHP extension for Memcached. The two must be used together to function properly. Just installing Memcached will not improve your site's performance. You must modify your coding to use memcached correctly.

Differences between Memcached and other caching systems

Other systems like APC, allow you direct access to the cached information. Memcached caches data and not parsed scripts as APC does. This makes Memcached perfect to optimize MySQL.Memcached is better suited for use with large caches that change versus APC which is not. For more information on APC please read our article.

How do I install Memcached?

If you are a VPS or dedicated customer and have root access to your server, you can install it yourself.We can install it for you, however in most cases it does require an installation fee due to the nature of the install.

If you need further assistance please feel free to contact support.

 
Rating:
 
Please log in to rate this article.
Like this Article?
Notify Me of Updates!
Please login to subscribe to receive notifications when this article is updated.
Prerequisite Articles
None

Comments

Currently no comments

You must log in before commenting.

Need more Help?

Search
Current Customers
Chat:Click to Chat Now
Call:888-321-HOST (4678)
E-mail:support@InMotionHosting.com
Ticket Submit a Support Ticket
Ask the Community!
Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.
Not a Customer?
Get web hosting from a company that is here to help. Sign up today!

Follow InMotion Hosting!

 4246 Followers. Follow Us!

Have a Question?

If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 5pm EST, Monday - Friday)

Recent Questions