亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

php redis connection problem
給我你的懷抱
給我你的懷抱 2017-05-16 13:08:41
0
4
843

< br>Why when I print the phpinfo() function, it shows that there is a redis extension (as shown above), but when I call the extension_loaded('Redis') method, it returns false. As a result, new Redis() cannot be used to connect to redis. But I can use Predis to connect to redis. What is the reason? What is the difference between Redis and Predis connections? If you use these two connection methods respectively, what needs to be installed respectively? Please give me some advice.

給我你的懷抱
給我你的懷抱

reply all(4)
伊謝爾倫

This is equivalent to installing the redis client, and you have to install the redis server on the server side!

僅有的幸福

This means that your PHP has already installed the redis extension, and you also need to install redis.

Ty80

Use class_exists('Redis') instead to determine whether the extension is loaded successfully. The problem you encounter may be a bug. The redis extension you installed is still the RC version

劉奇

Your screenshot shows that the redis extension has been installed, namely phpredishttps://github.com/phpredis/p...

phpredis 是用C寫的php擴展,需要編譯安裝。predis 是用php寫的php擴展,直接使用,laravel 默認(rèn)的就是predis
You said the connection cannot be made, you can post the error to see

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template