pavle/yii2-redis
最新稳定版本:v1.1.1
Composer 安装命令:
composer require pavle/yii2-redis
包简介
Yii 2 Redis extension with predis
README 文档
README
Using Predis and yii2 combination This extension is fully compatible with the yii2-redis extension, and you can use predis only if you replace the configuration
Usage
- Change your redis component configuration, There is no need to change any of the previous code, That's all right.
'redis' => [
'class' => pavle\yii\redis\Connection::class,
'parameters' => ['tcp://xx.xx.x.xx:30001', 'tcp://xx.xx.x.xx:30002', 'tcp://xx.xx.x.xx:30003'],
//'parameters' => 'tcp://192.168.2.240:6379',
'options' => ['cluster' => 'redis'],
],
2.More usage yii2-redis Document
3.Using the predis client
Yii::$app->redis->getClient();
统计信息
- 总下载量: 42.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-05-17