falcolee/laravel-swoole-redis
Composer 安装命令:
composer require 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
README 文档
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
统计信息
- 总下载量: 596
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-29