2017 © Pedro Peláez
 

library yii2-redis-cluster

yii2 with phpredis

image

crazydb/yii2-redis-cluster

yii2 with phpredis

  • Wednesday, June 20, 2018
  • by 疯狂的dabing
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 333 % Grown

The README.md

Yii2-redis-cluster

由于yiisoft/Yii2-redis 只支持单机redis,但近期的需求是在cluster模式下使用,所以简单包装一个轮子。, (*1)

扩展仅支持cluster集群模式, (*2)

依赖

  • PHP >= 5.6.0
  • Redis >= 3.0
  • ext-redis >= 3.0.0
  • Yii2 ~2.0.4

安装

composer require --prefer-dist crazydb/yii2-redis-cluster

配置

return [
    //....
    'components' => [
        'redisCluster' => [
            'class' => 'crazydb\redis\Connection',
            'hosts' => [
                'localhost:6379'
            ]
        ],
        'cache' => [
            'class' => 'crazydb\redis\Cache',
            'redisCluster' => [
                'hosts' => [
                    'localhost:6379'
                ]
            ]
        ],
        'session' => [
            'class' => 'crazydb\redis\Session',
            'redisCluster' => [
                'hosts' => [
                    'localhost:6379'
                ]
            ]
        ]
    ]
];

注意事项

  1. 未完全测试,请勿直接用于生产环境。
  2. 仅支持cluster集群模式。
  3. 仅支持cachesession组件,不支持ActiveRecord

The Versions

20/06 2018

dev-master

9999999-dev

yii2 with phpredis

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar 疯狂的dabing

20/06 2018

v1.1

1.1.0.0

yii2 with phpredis

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar 疯狂的dabing

12/06 2018

v1.0

1.0.0.0

yii2 with phpredis

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar 疯狂的dabing

06/02 2018

v0.8

0.8.0.0

yii2 with phpredis

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar 疯狂的dabing

02/02 2018

v0.6

0.6.0.0

yii2 with phpredis

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar 疯狂的dabing

02/02 2018

v0.7

0.7.0.0

yii2 with phpredis

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar 疯狂的dabing

02/02 2018

v0.5

0.5.0.0

yii2 with phpredis

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar 疯狂的dabing