2017 © Pedro PelĂĄez
 

wordpress-dropin wp-redis-object-cache-dropin

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, HHVM, replication and clustering.

image

devgeniem/wp-redis-object-cache-dropin

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, HHVM, replication and clustering.

  • Wednesday, January 4, 2017
  • by devgeniem
  • Repository
  • 5 Watchers
  • 0 Stars
  • 3,168 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 30 Forks
  • 1 Open issues
  • 10 Versions
  • 10 % Grown

The README.md

Redis Object Cache for WordPress

A persistent object cache backend powered by Redis. Supports Predis, PhpRedis (PECL), HHVM, replication, clustering and WP-CLI., (*1)

Forked from Eric Mann's and Erick Hitter's Redis Object Cache., (*2)

And forked again from Till KrĂŒss's Redis Cache., (*3)

We wanted to have only the object-cache.php dropin file and nothing else., (*4)

Installation

$ composer require devgeniem/wp-redis-object-cache-dropin

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., (*5)

To adjust the connection parameters, define any of the following constants in your wp-config.php file., (*6)

  • WP_REDIS_CLIENT (default: not set), (*7)

    Specifies the client used to communicate with Redis. Supports hhvm, pecl and predis., (*8)

  • WP_REDIS_SCHEME (default: tcp), (*9)

    Specifies the protocol used to communicate with an instance of Redis. Internally the client uses the connection class associated to the specified connection scheme. Supports tcp (TCP/IP), unix (UNIX domain sockets), tls (transport layer security) or http (HTTP protocol through Webdis)., (*10)

  • WP_REDIS_HOST (default: 127.0.0.1), (*11)

    IP or hostname of the target server. This is ignored when connecting to Redis using UNIX domain sockets., (*12)

  • WP_REDIS_PORT (default: 6379), (*13)

    TCP/IP port of the target server. This is ignored when connecting to Redis using UNIX domain sockets., (*14)

  • WP_REDIS_PATH (default: not set), (*15)

    Path of the UNIX domain socket file used when connecting to Redis using UNIX domain sockets., (*16)

  • WP_REDIS_DATABASE (default: 0), (*17)

    Accepts a numeric value that is used to automatically select a logical database with the SELECT command., (*18)

  • WP_REDIS_PASSWORD (default: not set), (*19)

    Accepts a value used to authenticate with a Redis server protected by password with the AUTH command., (*20)

Configuration Parameters

To adjust the configuration, define any of the following constants in your wp-config.php file., (*21)

  • WP_CACHE_KEY_SALT (default: not set), (*22)

    Set the prefix for all cache keys. Useful in setups where multiple installs share a common wp-config.php or $table_prefix, to guarantee uniqueness of cache keys., (*23)

  • WP_REDIS_MAXTTL (default: not set), (*24)

    Set maximum time-to-live (in seconds) for cache keys with an expiration time of 0., (*25)

  • WP_REDIS_GLOBAL_GROUPS (default: ['blog-details', 'blog-id-cache', 'blog-lookup', 'global-posts', 'networks', 'rss', 'sites', 'site-details', 'site-lookup', 'site-options', 'site-transient', 'users', 'useremail', 'userlogins', 'usermeta', 'user_meta', 'userslugs']), (*26)

    Set the list of network-wide cache groups that should not be prefixed with the blog-id (Multisite only)., (*27)

  • WP_REDIS_IGNORED_GROUPS (default: ['counts', 'plugins']), (*28)

    Set the cache groups that should not be cached in Redis., (*29)

Replication & Clustering

To use Replication and Clustering, make sure your server is running PHP7, your setup is using Predis to connect to Redis and you consulted the Predis documentation., (*30)

For replication use the WP_REDIS_SERVERS constant and for clustering the WP_REDIS_CLUSTER constant. You can use a named array or an URI string to specify the parameters., (*31)

For authentication use the WP_REDIS_PASSWORD constant., (*32)

Master-Slave Replication

define( 'WP_REDIS_SERVERS', [
    'tcp://127.0.0.1:6379?database=15&alias=master',
    'tcp://127.0.0.2:6379?database=15&alias=slave-01',
] );

Clustering via Client-side Sharding

define( 'WP_REDIS_CLUSTER', [
    'tcp://127.0.0.1:6379?database=15&alias=node-01',
    'tcp://127.0.0.2:6379?database=15&alias=node-02',
] );

Maintainers

@onnimonni, (*33)

@villepietarinen, (*34)

The Versions

04/01 2017

dev-master

9999999-dev https://github.com/devgeniem/wp-redis-object-cache-dropin

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, HHVM, replication and clustering.

  Sources   Download

GPL-3.0+

The Requires

 

30/10 2016

1.3.4.1

1.3.4.1 https://github.com/devgeniem/wp-redis-object-cache-dropin

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, HHVM, replication and clustering.

  Sources   Download

GPL-3.0+

The Requires

 

22/09 2016

1.3.4

1.3.4.0 https://github.com/tillkruss/redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, HHVM, replication and clustering.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

22/08 2016

1.3.3

1.3.3.0 https://github.com/tillkruss/redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, HHVM, replication and clustering.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

03/05 2016

1.3.2

1.3.2.0 https://github.com/tillkruss/Redis-Object-Cache

A persistent object cache backend powered by Redis. Supports HHVM's Redis extension, the PECL Redis Extension and the Predis library for PHP.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

29/04 2016

1.3.1

1.3.1.0 https://github.com/tillkruss/Redis-Object-Cache

A persistent object cache backend powered by Redis. Supports HHVM's Redis extension, the PECL Redis Extension and the Predis library for PHP.

  Sources   Download

GPL-3.0+

The Requires

 

29/04 2016

1.3.0

1.3.0.0 https://github.com/tillkruss/Redis-Object-Cache

A persistent object cache backend powered by Redis. Supports HHVM's Redis extension, the PECL Redis Extension and the Predis library for PHP.

  Sources   Download

GPL-3.0+

The Requires

 

03/03 2016

1.2.3

1.2.3.0 https://github.com/tillkruss/Redis-Object-Cache

A persistent object cache backend powered by Redis. Supports HHVM's Redis extension, the PECL Redis Extension and the Predis library for PHP.

  Sources   Download

GPL-3.0+

The Requires

 

10/02 2016

1.2.2

1.2.2.0 https://github.com/tillkruss/Redis-Object-Cache

A persistent object cache backend powered by Redis. Supports HHVM's Redis extension, the PCEL Redis Extension and the Predis library for PHP.

  Sources   Download

GPL-3.0+

The Requires

 

15/09 2015

1.2.1

1.2.1.0 https://github.com/tillkruss/Redis-Object-Cache

A persistent object cache backend powered by Redis. Supports HHVM's Redis extension, the PCEL Redis Extension and the Predis library for PHP.

  Sources   Download

GPL-3.0+

The Requires