=== Redis Object Cache === Contributors: tillkruess Donate link: http://till.kruss.me/donations/ Tags: redis, predis, cache, object cache, wp object cache, server, performance, speed, load Requires at least: 3.3 Tested up to: 4.0 Stable tag: 1.0 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html A persistent object cache backend powered by Redis and the Predis library for PHP. == Description == A persistent object cache backend powered by [Redis](http://redis.io/) and the [Predis](https://github.com/nrk/predis/) library for PHP. The Predis library requires PHP 5.4 or greater. To adjust the connection parameters or prefixing cache keys, see ["Other Notes"](http://wordpress.org/extend/plugins/redis-cache/other_notes/). Forked from Eric Mann's and Erick Hitter's [Redis Object Cache](https://github.com/ericmann/Redis-Object-Cache), which requires the Redis PECL extension. == Installation == For detailed installation instructions, please read the [standard installation procedure for WordPress plugins](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins). 1. Make sure Redis in installed and running. 2. Install and activate plugin. 3. Enable the object cache under _Tools -> Redis_. 4. If necessary, adjust [connection parameters](http://wordpress.org/extend/plugins/redis-cache/other_notes/). == Connection Parameters == By default the object cache drop-in will connect to Redis over TCP at `127.0.0.1:6379` and select database `0`. To adjust the connection parameters, define the following constants in your `wp-config.php`. * `WP_REDIS_SCHEME` [default: `tcp`] Specifies the protocol used to communicate with an instance of Redis. Internally the client uses the connection class associated to the specified connection scheme. By default Predis supports `tcp` (TCP/IP), `unix` (UNIX domain sockets) or `http` (HTTP protocol through Webdis). * `WP_REDIS_HOST` [default: `127.0.0.1`] IP or hostname of the target server. This is ignored when connecting to Redis using UNIX domain sockets. * `WP_REDIS_PORT` [default: `6379`] TCP/IP port of the target server. This is ignored when connecting to Redis using UNIX domain sockets. * `WP_REDIS_DATABASE` [default: not set] Accepts a numeric value that is used by Predis to automatically select a logical database with the `SELECT` command. * `WP_REDIS_PASSWORD` [default: not set] Accepts a value used to authenticate with a Redis server protected by password with the `AUTH` command. == Prefixing Cache Keys == The `WP_CACHE_KEY_SALT` constant is provided to add a prefix to all cache keys. Users with setups where multiple installs share a common `wp-config.php` or `$table_prefix` can use this constant to guarantee uniqueness for the keys generated by this object cache. == Changelog == = 1.0 = * Initial release