Level 1
So the solution here was to make sure you have context settings in to get it work properly in cluster mode
'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
'failover' => RedisCluster::FAILOVER_DISTRIBUTE_SLAVES, // Use slaves to read vs FAILOVER_DISTRIBUTE which uses master and slaves
'context' => [
'ssl' => [
'verify_peer' => true,
'verify_peer_name' => true,
],
],
],
'clusters' => [
'default' => [
[
'url' => env('STATE_REDIS_URL'),
'host' => env('STATE_REDIS_HOST', '127.0.0.1'),
'password' => env('STATE_REDIS_PASSWORD'),
'port' => env('STATE_REDIS_PORT', '6379'),
'scheme' => env('REDIS_SCHEME', 'tcp'),
],
],
],