how to set expire with openresty/1.15.8.3_1
axiaoxin opened this issue · 2 comments
axiaoxin commented
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'
RodrigoDornelles commented
i have some problem, how you fix @axiaoxin ?
zhuizhuhaomeng commented
red:expire(key, ttl)
Should be very careful about the difference of the colon and the dot between red and expire.