Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upautorehash in RedisArray constructor options Doesn't Work #294
Comments
|
Hey there, I will try to replicate this problem for you tonight or tomorrow. Cheers, |
|
Morgan, The "autorehash" feature is tested and the tests are currently passing on master. Have a look at tests/array-tests.php, in the |
|
Thanks for your reply. I'll try it out:) |
|
not work! the Redis_Auto_Rehashing_Test passed just because there's a Redis_Rehashing_Tes before it. |
|
I just tried this today, and it doesn't auto rehash. Can anyone verify that this is working? |
|
Hey there, can you please test the branch |
I tried main branch and tag 2.2.2. It turns out that, as code below, autorehash doesn't trigger migration of keys among nodes.
$options = array(0;
$options['previous'] = $previous_server_list;
$options['autorehash'] = TRUE;
$ra = new RedisArray($server_list, $options);
Is there something missing in https://github.com/nicolasff/phpredis/blob/master/arrays.markdown#readme ?