Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel redis sentinel

'redis' => [

        'client' => 'predis',

        // Keep Default as is you want to use both redis and sentinel for different service(cache, queue)'
        'default' => [
            'host' => env('REDIS_HOST', '127.0.0.1'),
            'password' => env('REDIS_PASSWORD', null),
            'port' => env('REDIS_PORT', 6379),
            'database' => 0,
        ],

        // Create a custom connection to use redis sentinel
        'cache_sentinel' => [
            // Set the Sentinel Host from Environment (optinal you can hardcode if want to use in prod only)
            env('CACHE_REDIS_SENTINEL_1'),
            env('CACHE_REDIS_SENTINEL_2'),
            env('CACHE_REDIS_SENTINEL_3'),
            'options' => [
                'replication' => 'sentinel',
                'service' => 'cachemaster'),
                'parameters' => [
                    'password' => env('REDIS_PASSWORD', null),
                    'database' => 0,
                ],
            ],
        ],
    ],
Comment

PREVIOUS NEXT
Code Example
Php :: square root 
Php :: php check if item in array 
Php :: how to enable auto refresh on save laravel 
Php :: eloquent search ignore case 
Php :: artisan app name 
Php :: parent in php 
Php :: laravel collection shift 
Php :: split date range into weeks php 
Php :: PHP exif_read_data() 
Php :: Laravel artisan command to create model plus migration 
Php :: change apply coupon text woocommerce 
Php :: codeigniter 3 session not working after some time 
Php :: Laravel Extract Values From Collection Using Pluck() with Relationship 
Php :: PHP If If Else Else Statement 
Php :: twig render to string 
Php :: laravel toastr option 
Php :: string concatenation in php 
Php :: what is the use of migration file in laravel 
Php :: meta_value wordpress 
Php :: laravel api error return homepage 
Php :: Php OOP function CRUD 
Php :: getting routes in middleware laravel 
Php :: What was the old name of PHP? 
Php :: how to hide submenu admin wordpress 
Php :: php array 
Php :: sass for php 
Php :: php remove directory only if empty 
Php :: php string concatenation 
Php :: php locale 
Php :: laravel send data with a redirect 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =