无法将“hset”与redis群集一起使用

hs1ihplo  于 2021-06-09  发布在  Redis
关注(0)|答案(0)|浏览(510)

查询:
我使用的是redis集群。正在尝试使用hset存储用户数据。我不明白为什么会出现这个错误。
环境:

Library: Predis-1.0.3
redis: 3.0.6
php: 5.4
Framework : codeigniter(2.1.0)

错误:

Predis\NotSupportedException: Uncaught exception 'Predis\NotSupportedException' with message 'Cannot use 'HSET' with redis-cluster.' in /var/www/domain.name/application/libraries/predis-1.0/src/Connection/Aggregate/RedisCluster.php:299
in Predis\Connection\Aggregate\RedisCluster::getConnection called at /var/www/domain.name/application/libraries/predis-1.0/src/Connection/Aggregate/RedisCluster.php (470)
in Predis\Connection\Aggregate\RedisCluster::executeCommand called at /var/www/domain.name/application/libraries/predis-1.0/src/Client.php (326)
in Predis\Client::executeCommand called at /var/www/domain.name/application/libraries/predis-1.0/src/Client.php (310)
in Predis\Client::__call called at /var/www/domain.name/application/libraries/REST_Controller.php (937)
in Predis\Client::hset called at /var/www/domain.name/application/libraries/REST_Controller.php (937)

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题