yiisoft/db-redis


CA CE CIS DIT
    yii\db\redis\ActiveQuery 2 4 12 2
    yii\db\redis\ActiveRecord 3 7 10 2
    yii\db\redis\Cache 0 4 5 2
    yii\db\redis\Connection 4 0 10 2
    yii\db\redis\LuaScriptBuilder 0 5 9 2
    yii\db\redis\Mutex 0 4 4 2
    yii\db\redis\Session 0 4 7 2
    yii\db\redis\SocketException 0 0 1 2
    Yiisoft\Db\Redis\ActiveQuery 2 4 12 2
    Yiisoft\Db\Redis\ActiveRecord 3 7 10 2
    Yiisoft\Db\Redis\Cache 0 4 5 2
    Yiisoft\Db\Redis\LuaScriptBuilder 0 5 9 2
    Yiisoft\Db\Redis\Mutex 0 4 4 2
    Yiisoft\Db\Redis\Session 0 4 7 2
    Yiisoft\Db\Redis\SocketException 0 0 1 2
CA (Afferent Coupling)
Number of unique incoming dependencies from other artifacts of the same type.
CE (Efferent Coupling)
Number of unique outgoing dependencies to other artifacts of the same type.
CID (Class Interface Size)
Number of non private methods and properties of a class: CIS = public(NOM + VARS)
Measures the size of the interface from other parts of the system to a class.
Depth of Inheritance Tree
Depth of inheritance to root class
{
    "name": "yiisoft/db-redis",
    "description": "Yii Framework Redis Cache, Session and ActiveRecord extension",
    "keywords": ["yii", "redis", "active-record", "cache", "session"],
    "type": "library",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/db-redis/issues",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/db-redis"
    },
    "authors": [
        {
            "name": "Carsten Brandt",
            "email": "mail@cebe.cc"
        }
    ],
    "minimum-stability": "dev",
    "prefer-stable": true,
    "require": {
        "yiisoft/arrays": "^3.0@dev",
        "yiisoft/strings": "^3.0@dev",
        "yiisoft/yii-core": "^3.0@dev",
        "ext-mbstring": "*",
        "ext-json": "*"
    },
    "require-dev": {
        "phpunit/phpunit": "^7.3",
        "hiqdev/composer-config-plugin": "^1.0@dev",
        "yiisoft/active-record": "^3.0@dev",
        "yiisoft/yii-console": "^3.0@dev",
        "yiisoft/di": "^3.0@dev",
        "yiisoft/log": "^3.0@dev",
        "yiisoft/cache": "^3.0@dev",
        "yiisoft/yii-web": "^3.0@dev",
        "yiisoft/mutex": "^3.0@dev"
    },
    "autoload": {
        "psr-4": { "Yiisoft\\Db\\Redis\\": "src" }
    },
    "autoload-dev": {
        "psr-4": {
            "Yiisoft\\Db\\Redis\\Tests\\": "tests/",
            "Yiisoft\\Cache\\Tests\\": "vendor/yiisoft/cache/tests/"
        }
    },
    "extra": {
        "branch-alias": {
            "dev-master": "1.0.x-dev"
        },
        "config-plugin": {
            "tests": "config/tests.php"
        }
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ]
}
yiisoft/db-redis dependencies

Yii Framework Redis Cache, Session and ActiveRecord extension


This extension provides the redis key-value store support for the Yii framework. 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.

composer require --prefer-dist yiisoft/db-redis

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