解决:tp5 中redis使用hmget 报错502

it2023-05-29  65

phpredis扩展版本太低造成的,重装redis扩展解决。下载5.3.1版本稳定版。 地址:http://pecl.php.net/package/redis

或暂时使用hGetAll 方法替代。 例如:

$redis->hGetAll('hash')
最新回复(0)