PHP code example of antyblin / laravel-swoole-redis

1. Go to this page and download the library: Download antyblin/laravel-swoole-redis library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

antyblin / laravel-swoole-redis example snippets


    'redis_pool' => [
        'driver' => 'redis',
        'connection' => 'default',
    ],

    'default' => [
        'url' => env('REDIS_URL'),
        'host' => env('REDIS_HOST'),
        'password' => env('REDIS_PASSWORD'),
        'port' => env('REDIS_PORT'),
        'database' => env('REDIS_CACHE_DB'),
        'pool_size' => env('REDIS_POOL_SIZE', 64)
    ],