erikdubbelboer / phpRedisAdmin

Simple web interface to manage Redis databases.
http://dubbelboer.com/phpRedisAdmin/
3.11k stars 666 forks source link

empty to append, -1 to prepend #135

Closed p3x-robot closed 6 years ago

p3x-robot commented 6 years ago

hello,

it says, to append or on index -1 to will be prepend, but the actual code always adding: image

jack9603301 commented 6 years ago

What do you mean? Can you speak more clearly?

p3x-robot commented 6 years ago

image

p3x-robot commented 6 years ago

the index -1 is supposed to prepend in a list, empty is append, but the code has now choice but only append .

p3x-robot commented 6 years ago

-1 is supposed to be $redis->lPush ....

p3x-robot commented 6 years ago

if ($index== -1) { $redis->lPush ... } else { $redis->rPush .... }

jack9603301 commented 6 years ago

If you find a specific problem, you can fork yourself, modify the code, and finally submit your changes to the repository owner.

Or tell us the specific problems, we will make amendments.

erikdubbelboer commented 6 years ago

Thanks, I just fixed it in https://github.com/erikdubbelboer/phpRedisAdmin/commit/da821c44e30a07922e29fe1fd81553069fafe3a7