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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?