yii2-redis

Yii 2 Redis extension.

  • 所有者: yiisoft/yii2-redis
  • 平台:
  • 许可证: BSD 3-Clause "New" or "Revised" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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,
        ],
    ]
];

主要指标

概览
名称与所有者yiisoft/yii2-redis
主编程语言PHP
编程语言PHP (语言数: 2)
平台
许可证BSD 3-Clause "New" or "Revised" License
所有者活动
创建于2013-11-25 01:40:18
推送于2025-04-03 22:40:59
最后一次提交2025-04-04 01:40:59
发布数23
最新版本名称2.0.19 (发布于 2025-02-14 00:03:07)
第一版名称2.0.0-alpha (发布于 )
用户参与
星数449
关注者数47
派生数182
提交数4.8k
已启用问题?
问题数153
打开的问题数32
拉请求数77
打开的拉请求数3
关闭的拉请求数38
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?