Configuration: Configuring Clusters

Will perform client-side sharding across your nodes, allowing you to pool nodes and create a large amount of available RAM.

'redis' => [

    'client' => 'predis',

    'clusters' => [
        'default' => [
            [
                'host' => env('REDIS_HOST', 'localhost'),
                'password' => env('REDIS_PASSWORD', null),
                'port' => env('REDIS_PORT', 6379),
                'database' => 0,
            ],
        ],
    ],

],
'redis' => [

    'client' => 'predis',

    'options' => [
        'cluster' => 'redis',
    ],

    'clusters' => [
        // ...
    ],

],

Configuration: Configuring Clusters — Structure map

Clickable & Draggable!

Configuration: Configuring Clusters — Related pages: