Redis Lua Doesn't Recognize Inf? -


i'm writing lua script in redis, , have 1 line that's breaking everything:

local to_remove = redis.call('zrange', keys[1], -5, "+inf") 

returns:

redis.exceptions.responseerror: error running script (call f_f1d95d2e103f00220a476f0ef2a2abc798682c55): err value not integer or out of range 

this goes away if replace "+inf" number. i've tried "inf" , "-inf" well, , none of these work. ideas?

nevermind. i'm idiot. should have used "-1" in place of "inf." zrange doesn't support inf, , -1 gives same results have expected inf. helps trying same later on.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -