Registry / database / yiisoft-yii2-redis

yiisoft-yii2-redis

JSON →
library2.1.2phppackagistunverified

Redis Cache, Session and ActiveRecord for the Yii framework.

composer require yiisoft/yii2-redis
INSTALL
IMPORT
SIG · YIISOFT-YII2-REDIS
Y
yiisoft-yii2-redis
databasephpv2.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Connection
use yii\redis\Connection;

Connects to Redis and sets/gets a value.

use yii\redis\Connection; $redis = new Connection([ 'hostname' => 'localhost', 'port' => 6379, ]); $redis->set('key', 'value'); echo $redis->get('key');
Debug
Known issues
breakingRequires PHP Redis extension.
fix
Install phpredis extension.
affects: >=2.1.2
Upgrade
Version history
2.1.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
51 hits · last 30 days
node
38
OpenAI (training)
2
Amazon
1
Resources
yiisoft-yii2-redis — pip install yiisoft-yii2-redis · libregistry