falcolee / laravel-swoole-redis
Laravel package to provide swoole redis pool integration,laravel redis pool cache and session driver. Aims to avoid redis server timeout exception
Installs: 596
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 1
Forks: 7
Open Issues: 0
pkg:composer/falcolee/laravel-swoole-redis
Requires
- php: >=5.6.4
 - illuminate/support: ^5.0|^6.0|^7.0|^8.0
 
This package is auto-updated.
Last update: 2025-10-24 12:47:43 UTC
README
Laravel package to provide swoole redis pool integration,laravel redis pool cache and session driver. Aims to avoid redis server timeout exception
    public $config = [
        //min 3
        'poolMin'         => 3,
        //max 1000
        'poolMax'         => 64,
        //when lost connection retry
        'retryTimes'      => 2,
        //options config
        'connect_timeout' => 1,
        'timeout'         => 1,
        'reconnect'       => 1
    ];
install
composer require falcolee/laravel-swoole-redis
how to use
- step 1: make true you've got a right swoole environment
 - step 2: add
 
    'redis_pool' => [
        'driver' => 'redis',
        'connection' => 'default',
    ],
in your config/cache.php stores section below redis array
- step 3: change your redis drive or session drive to 
redis_poolin your.envfile , that is it