2017 © Pedro Peláez
 

yii2-extension yii2-redis

Redis Cache, Session and ActiveRecord for the Yii framework

image

e96/yii2-redis

Redis Cache, Session and ActiveRecord for the Yii framework

  • Thursday, January 25, 2018
  • by m8rge
  • Repository
  • 24 Watchers
  • 3 Stars
  • 5,983 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 152 Forks
  • 0 Open issues
  • 40 Versions
  • 0 % Grown

The README.md

yii2-redis module with various fixes and speedups

Migration guide

This version incompatible with official extension due pk storage algorithm. To migrate to our version you should migrate your pks. Example code:, (*1)

function fill($keys)
{
    foreach ($keys as $key) {
        yield $key;
        yield 0;
    }
}

$keys = $redis->executeCommand('LRANGE', ['model', 0, -1]);
$keys = iterator_to_array(fill($keys));
$keys = array_unshift($keys, 'model')

$redis->executeCommand('DEL', 'model')
$redis->executeCommand('HMSET', $keys)

Redis Cache, Session and ActiveRecord for Yii 2

This extension provides the redis key-value store support for the Yii framework 2.0. It includes a Cache and Session storage handler and implements the ActiveRecord pattern that allows you to store active records in redis., (*2)

For license information check the LICENSE-file., (*3)

Documentation is at docs/guide/README.md., (*4)

Latest Stable Version Total Downloads Build Status, (*5)

Requirements

At least redis version 2.6.12 is required for all components to work properly., (*6)

Installation

The preferred way to install this extension is through composer., (*7)

Either run, (*8)

php composer.phar require --prefer-dist e96/yii2-redis

or add, (*9)

"e96/yii2-redis": "~2.0.0"

to the require section of your composer.json., (*10)

Configuration

To use this extension, you have to configure the Connection class in your application configuration:, (*11)

return [
    //....
    'components' => [
        'redis' => [
            'class' => 'yii\redis\Connection',
            'hostname' => 'localhost',
            'port' => 6379,
            'database' => 0,
        ],
    ]
];

The Versions

25/01 2018

dev-master

9999999-dev

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

25/01 2018

2.1.8

2.1.8.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

20/03 2017

2.1.7

2.1.7.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

20/03 2017

dev-refacoring

dev-refacoring

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

03/02 2017

2.1.6

2.1.6.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

11/05 2016

2.1.5

2.1.5.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

15/04 2016

2.1.4

2.1.4.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

14/04 2016

2.1.3

2.1.3.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

08/04 2016

2.1.1.1

2.1.1.1

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

08/04 2016

2.1.2

2.1.2.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

07/04 2016

2.1.1

2.1.1.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

07/04 2016

2.1.0

2.1.0.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

07/04 2016

dev-phpredis

dev-phpredis

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

02/09 2015

2.0.5

2.0.5.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

02/09 2015

dev-primary-key-hash

dev-primary-key-hash

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

30/07 2015

2.0.4.4

2.0.4.4

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

21/07 2015

2.0.4.3

2.0.4.3

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

21/07 2015

2.0.4.2

2.0.4.2

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

14/05 2015

2.0.4.1

2.0.4.1

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

14/05 2015

dev-is-attribute-changed

dev-is-attribute-changed

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

14/05 2015

2.0.4

2.0.4.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

08/05 2015

2.0.3.6

2.0.3.6

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

27/04 2015

2.0.3.5

2.0.3.5

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

24/04 2015

dev-refactoring

dev-refactoring

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

06/04 2015

2.0.3.4

2.0.3.4

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

23/03 2015

2.0.3.3

2.0.3.3

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

23/03 2015

2.0.3.2

2.0.3.2

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

19/03 2015

2.0.3.1

2.0.3.1

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

13/03 2015

2.0.3

2.0.3.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

06/03 2015

2.0.1.5

2.0.1.5

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

02/02 2015

2.0.1.4

2.0.1.4

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

27/01 2015

2.0.1.3

2.0.1.3

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

11/01 2015

2.0.2

2.0.2.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

15/12 2014

2.0.1.2

2.0.1.2

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

15/12 2014

2.0.1.1

2.0.1.1

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

07/12 2014

2.0.1

2.0.1.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

12/10 2014

2.0.0

2.0.0.0

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

28/09 2014

2.0.0-rc

2.0.0.0-RC

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

13/04 2014

2.0.0-beta

2.0.0.0-beta

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache yii2 redis active-record session

30/11 2013

2.0.0-alpha

2.0.0.0-alpha

Redis Cache, Session and ActiveRecord for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

cache redis yii active-record session