{"action":"created","issue":{"url":"https://api.github.com/repos/phpredis/phpredis/issues/1073","repository_url":"https://api.github.com/repos/phpredis/phpredis","labels_url":"https://api.github.com/repos/phpredis/phpredis/issues/1073/labels{/name}","comments_url":"https://api.github.com/repos/phpredis/phpredis/issues/1073/comments","events_url":"https://api.github.com/repos/phpredis/phpredis/issues/1073/events","html_url":"https://github.com/phpredis/phpredis/issues/1073","id":196858914,"number":1073,"title":"Warning: RedisCluster::rpoplpush(): Keys don't hash to the same slot","user":{"login":"zgb7mtr","id":8176166,"avatar_url":"https://avatars.githubusercontent.com/u/8176166?v=3","gravatar_id":"","url":"https://api.github.com/users/zgb7mtr","html_url":"https://github.com/zgb7mtr","followers_url":"https://api.github.com/users/zgb7mtr/followers","following_url":"https://api.github.com/users/zgb7mtr/following{/other_user}","gists_url":"https://api.github.com/users/zgb7mtr/gists{/gist_id}","starred_url":"https://api.github.com/users/zgb7mtr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgb7mtr/subscriptions","organizations_url":"https://api.github.com/users/zgb7mtr/orgs","repos_url":"https://api.github.com/users/zgb7mtr/repos","events_url":"https://api.github.com/users/zgb7mtr/events{/privacy}","received_events_url":"https://api.github.com/users/zgb7mtr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-21T06:44:05Z","updated_at":"2016-12-21T07:56:26Z","closed_at":null,"body":"Hi all,\r\n\r\n`\t  $redisCluster->lPush('x', 'abc');\r\n\r\n\t  $redisCluster->lPush('x', 'def');\r\n\r\n\t  $redisCluster->lPush('y', '123');\r\n\r\n\t  $redisCluster->lPush('y', '456');\r\n\r\n\t  var_dump($redisCluster->rpoplpush('x', 'y'));\r\n\r\n\t  var_dump($redisCluster->lRange('x', 0, -1));\r\n\r\n\t  var_dump($redisCluster->lRange('y', 0, -1));\r\n\r\n`\r\nI use this code in php. and I get a error \"PHP Warning:  RedisCluster::rpoplpush(): Keys don't hash to the same slot in ...\"\r\nMy environment\r\nphp 7.0.8  + phpredis  3.1.0 + redis 3.2.6 cluster."},"comment":{"url":"https://api.github.com/repos/phpredis/phpredis/issues/comments/268459322","html_url":"https://github.com/phpredis/phpredis/issues/1073#issuecomment-268459322","issue_url":"https://api.github.com/repos/phpredis/phpredis/issues/1073","id":268459322,"user":{"login":"michael-grunder","id":468149,"avatar_url":"https://avatars.githubusercontent.com/u/468149?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-grunder","html_url":"https://github.com/michael-grunder","followers_url":"https://api.github.com/users/michael-grunder/followers","following_url":"https://api.github.com/users/michael-grunder/following{/other_user}","gists_url":"https://api.github.com/users/michael-grunder/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-grunder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-grunder/subscriptions","organizations_url":"https://api.github.com/users/michael-grunder/orgs","repos_url":"https://api.github.com/users/michael-grunder/repos","events_url":"https://api.github.com/users/michael-grunder/events{/privacy}","received_events_url":"https://api.github.com/users/michael-grunder/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T07:56:26Z","updated_at":"2016-12-21T07:56:26Z","body":"This is a limitation of redis-server, not phpredis.  One solution is to cluster your keys which you will be using in multiple-key commands by hashing them, like `{hash}1`, `{hash}2`, which tells Redis to make sure those two keys live on the same slot."}}
{"actor":{"display_login":"michael-grunder"}}