HSET on Redis Cluster #2619
Closed
vanessa-dev
started this conversation in
General
Replies: 1 comment
-
It looks like there's a minor divergence between You are able to set multiple fields however, by calling it this way: $rc = new RedisCluster(NULL, ['localhost:7000']);
// Send one field and value
$rc->hSet('hash1', 'field1', 'value1');
// Send multiple
$rc->hSet('hash2', ['faield1' => 'value1', 'field2' => 'value2']); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
On RedisCluster it is not possible to use the hSet command for RedisCluster is required to use the hset?(https://phpredis.github.io/phpredis/RedisCluster.html) because I saw on the doc is hset. I was testing using Redis () and I was able to set more the one field with the hSet command but when I try to test with RedisCluster this error return to me
expects exactly 3 parameters, 5 given
, so it is not possible to set more then one field ?Beta Was this translation helpful? Give feedback.
All reactions