Home > Backend Development > PHP Tutorial > php访问redis扩展应该使用哪个版本

php访问redis扩展应该使用哪个版本

WBOY
Release: 2016-06-06 20:26:50
Original
1680 people have browsed it

如题,服务器使用的redis3.0,扩展应该怎么选择版本?

回复内容:

如题,服务器使用的redis3.0,扩展应该怎么选择版本?

别用phpredis了,用predis,支持纯php模式或者扩展模式(使用phpiredis)

https://github.com/nrk/predis

直接安装php对应的redis插件,就可以实现访问的,我的是 Redis Version 2.2.7

Linux下用Pecl安装就好了
phpredis 的最新版本之前看到已经支持3.0了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template