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 uplRange method bug? OR document errors? #1573
Closed
Comments
|
sorry,my fault.I don't know my project somebody overload this method |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behaviour
$redis->rPush('key1', 'A');
$redis->rPush('key1', 'B');
$redis->rPush('key1', 'C');
$redis->lRange('key1', 0, -1); /* ['A', 'B', 'C'] */
Actual behaviour
['A', 'B']
$redis->lRange('key1', 0, 0); /* ['A', 'B', 'C'] */
I'm seeing this behaviour on
OS: Linux version 3.10.0-693.17.1.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Thu Jan 25 20:13:58 UTC 2018
Redis:4.0.10
PHP:PHP 5.6.39-0+deb8u2 (cli) (built: Feb 12 2019 01:54:35)
phpredis:3.1.6