PHP code example of shashandr / laravel-swoole-redis
1. Go to this page and download the library: Download shashandr/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/ */
shashandr / 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)
],