yii-redis 扩展 http://www.yiiframework.com/extension/yii-redis/
Yii::app()->redis->getClient()->set("myKey", "Your Value");
echo Yii::app()->redis->getClient()->get("myKey"); // outputs "Your Value"
Yii::app()->redis->getClient()->del("myKey"); // deletes the key
我得到错误:
include(Redis.php): 无法打开流:没有那个文件或目录
最佳答案
从扩展页面:
This package relies on the https://github.com/nicolasff/phpredis PHP extension, please make sure this is installed before continuing.
关于php - yii redis 扩展包括(Redis.php): failed to open stream: No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20572509/