Introduction to Memcached: server side data cachingWritten 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.
|
|
|
|
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 systemsOther 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. |
Comments
Need more Help?
| Search
|
Current Customers
|
||||||||
Ask the Community! Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff. |
Not a Customer? |

Support Center Login
