8.4 Quickstart and Examples

8.4.1 Architecture and Concepts
8.4.2 Setup
8.4.3 Caching queries
8.4.4 Setting the TTL
8.4.5 Pattern based caching
8.4.6 Slam defense
8.4.7 Finding cache candidates
8.4.8 Measuring cache efficiency
8.4.9 Beyond TTL: user-defined storage

Copyright 1997-2014 the PHP Documentation Group.

The mysqlnd query cache plugin is easy to use. This quickstart will demo typical use-cases, and provide practical advice on getting started.

It is strongly recommended to read the reference sections in addition to the quickstart. It is safe to begin with the quickstart. However, before using the plugin in mission critical environments we urge you to read additionally the background information from the reference sections.

Most of the examples use the mysqli extension because it is the most feature complete PHP MySQL extension. However, the plugin can be used with any PHP MySQL extension that is using the mysqlnd library.