openresty/lua-resty-redis

how to set expire with openresty/1.15.8.3_1

axiaoxin opened this issue · 2 comments

I use: red:expire(key, ttl)
but error:

..local/Cellar/openresty/1.15.8.3_1/lualib/resty/redis.lua:240: bad argument #1 to 'rawget' (table expected, got string)
stack traceback:
	[C]: in function 'rawget'

i have some problem, how you fix @axiaoxin ?

red:expire(key, ttl)
Should be very careful about the difference of the colon and the dot between red and expire.