Title: Compatible with AWS Valkey?
Last modified: June 1, 2026

---

# Compatible with AWS Valkey?

 *  Resolved [marcqdigital](https://wordpress.org/support/users/marcqdigital/)
 * (@marcqdigital)
 * [1 week ago](https://wordpress.org/support/topic/compatible-with-aws-valkey/)
 * I’ve been using AWS Elasticache with Redis OSS caches for a while and just tried
   to set up a new Elasticache instance using Valkey instead which AWS advertises
   as a drop-in replacement of Redis OSS.
 * I swapped the environment variable for WP_REDIS_HOST and started with WP_REDIS_DISABLED
   set to true to prevent site downtime if Valkey just didn’t work. After that update,
   the plugin settings page stated that Redis is Reachable. I enabled the object
   cache with the environment variable again and shortly after, got this error:
   **
   Error establishing a Redis connection**`CROSSSLOT Keys in request don't hash 
   to the same slot`Is there a setting I need to change for this to work?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [marcqdigital](https://wordpress.org/support/users/marcqdigital/)
 * (@marcqdigital)
 * [1 week ago](https://wordpress.org/support/topic/compatible-with-aws-valkey/#post-18925373)
 * My Valkey instance is set to serverless. What’s funny is that on 2/3 sites I 
   got this error, but things are working fine with a Valkey serverless instance
   on one of the sites that I tried this on. On that site I was able to flush the
   cache (via the plugin) right before the enivronment update, so maybe that’s why?
   But I did use the wp cache flush command on the other two sites after the error
   message showed up and that didn’t help.
 *  Thread Starter [marcqdigital](https://wordpress.org/support/users/marcqdigital/)
 * (@marcqdigital)
 * [1 week ago](https://wordpress.org/support/topic/compatible-with-aws-valkey/#post-18925532)
 * Ah, the site where redis is working on Valkey has PhpRedis installed instead 
   of just using Predis. I will try setting that up on the remaining sites.
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [1 week ago](https://wordpress.org/support/topic/compatible-with-aws-valkey/#post-18925621)
 * If you’re using `cluster_mode` in AWS then you can’t use `WP_REDIS_HOST`, you
   must use the cluster connection parameters (see README).
 *  Thread Starter [marcqdigital](https://wordpress.org/support/users/marcqdigital/)
 * (@marcqdigital)
 * [3 days, 9 hours ago](https://wordpress.org/support/topic/compatible-with-aws-valkey/#post-18930051)
 * For anyone else curious, you do need PhpRedis installed on the server to use 
   any type of Valkey Elasticache instance, but once you have PhpRedis in place 
   you can set up an Elasticache instance with either serverless or customize the
   cluster settings to turn cluster off and set up a read-replica instead. Then 
   either of these types of instances on Valkey will work set as WP_REDIS_HOST without
   any complicated cluster mode settings.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcompatible-with-aws-valkey%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [marcqdigital](https://wordpress.org/support/users/marcqdigital/)
 * Last activity: [3 days, 9 hours ago](https://wordpress.org/support/topic/compatible-with-aws-valkey/#post-18930051)
 * Status: resolved