pantheon-systems / wp-redis

WordPress Object Cache using Redis.
https://wordpress.org/plugins/wp-redis/
GNU General Public License v2.0
225 stars 68 forks source link

Support Relay via `WP_REDIS_USE_RELAY` #344

Closed tillkruss closed 2 years ago

tillkruss commented 2 years ago

Added support for Relay via WP_REDIS_USE_RELAY constant.

I used a constant instead of wp_redis_prepare_client_connection_callback, since it's a drop-in replacement for PhpRedis with an identical API.

danielbachhuber commented 2 years ago

@tillkruss Got the go-ahead from the internal team, with one request:

Can you request information on how end users get support from Relay. We'd like to see the capability and link to access support added in the README.

You can include it in *Installation, after the mention of Human Made's adaptor: https://github.com/pantheon-systems/wp-redis#installation

tillkruss commented 2 years ago

@danielbachhuber Thanks for following up. I've added the requested notes in https://github.com/pantheon-systems/wp-redis/pull/344/commits/ddee391063f7f7fdc9a75256155f4b3f9f6f995e.