yii2-redis

Yii 2 Redis extension.

  • Owner: yiisoft/yii2-redis
  • Platform:
  • License:: BSD 3-Clause "New" or "Revised" License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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.

For license information check the LICENSE-file.

Documentation is at docs/guide/README.md.

Latest Stable Version
Total Downloads
Build Status

Requirements

At least redis version 2.6.12 is required for all components to work properly.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yiisoft/yii2-redis:"~2.0.0"

or add

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

to the require section of your composer.json.

Configuration

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

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

Main metrics

Overview
Name With Owneryiisoft/yii2-redis
Primary LanguagePHP
Program languagePHP (Language Count: 2)
Platform
License:BSD 3-Clause "New" or "Revised" License
所有者活动
Created At2013-11-25 01:40:18
Pushed At2025-04-03 22:40:59
Last Commit At2025-04-04 01:40:59
Release Count23
Last Release Name2.0.19 (Posted on 2025-02-14 00:03:07)
First Release Name2.0.0-alpha (Posted on )
用户参与
Stargazers Count449
Watchers Count47
Fork Count182
Commits Count4.8k
Has Issues Enabled
Issues Count153
Issue Open Count32
Pull Requests Count77
Pull Requests Open Count3
Pull Requests Close Count38
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private