{"id":87585,"library":"yiisoft-yii2-redis","title":"Yii2 Redis","description":"Redis Cache, Session and ActiveRecord for the Yii framework.","status":"active","version":"2.1.2","language":"php","source_language":null,"source_url":"https://github.com/yiisoft/yii2-redis","tags":["redis","yii2","cache","session"],"install":[{"cmd":"composer require yiisoft/yii2-redis","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Connection","correct":"use yii\\redis\\Connection;"}],"quickstart":{"code":"use yii\\redis\\Connection;\n\n$redis = new Connection([\n    'hostname' => 'localhost',\n    'port' => 6379,\n]);\n$redis->set('key', 'value');\necho $redis->get('key');","lang":"php","description":"Connects to Redis and sets/gets a value."},"warnings":[{"fix":"Install phpredis extension.","message":"Requires PHP Redis extension.","severity":"breaking","affected_versions":">=2.1.2"}],"env_vars":null,"search_vec":"'activerecord':7 'cach':4,14 'framework':11 'redi':2,3,12 'session':5,15 'yii':10 'yii2':1,13","created_at":"2026-06-19T08:20:05.278822+00:00","updated_at":"2026-06-19T08:20:05.278822+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/yiisoft/yii2-redis","github":"https://github.com/yiisoft/yii2-redis","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","caching"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}