You are previewing Getting Started with Memcached.
O'Reilly logo
Getting Started with Memcached

Book Description

Speed up and scale out your web applications with Memcached

  • Set up the Memcached service on your server or development machine

  • Use Memcached on your Java, Ruby, Python, and PHP applications

  • Full of practical, real-world examples and easy-to-follow explanations

In Detail

Web application performance is no longer a non-functional requirement, but an implicit condition for an engaging user experience. As a result, responsive and highly scalable applications are becoming a necessity. Memcached is a high-performance distributed memory caching system built to speed up dynamic web applications by offloading pressure from your database.

Getting Started with Memcached is a hands-on, comprehensive guide to the Memcached service and it’s API in different programming languages. It contains practical recipes to integrate Memcached within your Rails, Django, or even Scala Play! applications.

This book will show you everything you need to know to start using Memcached in your existing or new web applications. This book uses real-world recipes to help you learn how to store and retrieve data from your clustered virtual memory cache pool and how to integrate caching into your favourite web development framework.

You will also learn how to build a Memcached consistent-hashing scalable cluster and how Memcached clients are properly configured to use different servers to scale out your memory cache pool in Ruby, Python, PHP, and Java. With this book, you will see how to cache templates and database queries in the most popular web development framework in use today.

Table of Contents

  1. Getting Started with Memcached
    1. Table of Contents
    2. Getting Started with Memcached
    3. Credits
    4. About the Author
    5. Acknowledgments
    6. About the Reviewers
    7. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    8. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
        1. Customer support
        2. Errata
        3. Piracy
        4. Questions
    9. 1. Getting Started with Memcached
      1. Basic installation of memcached on Ubuntu (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Installation on Windows
      2. Basic installation of memcached on Mac (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Compiling memcached from a source on Ubuntu (Simple)
        1. Getting ready
        2. How to do it...
      4. Talking with memcached (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
      5. Setting up memcached to start on boot in Ubuntu (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
      6. Setting up distributed memcached (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
          1. Caching with persistence
      7. Using memcached with PHP (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      8. Using memcached with Python (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      9. Using memcached with Ruby (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      10. Using memcached with Java (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      11. Setting up memcached support in Rails (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      12. Setting up memcached support in Django (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
      13. Setting up memcached to support in Play (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    10. Index