lua-resty-redis icon indicating copy to clipboard operation
lua-resty-redis copied to clipboard

How to use ltrim method for list

Open vaseniu opened this issue 3 years ago • 2 comments
trafficstars

vaseniu avatar Dec 14 '21 02:12 vaseniu

red:eval("return redis.call('ltrim', PAGE_HASH_LIST, 0, 1)", 0)

attempt to call method 'eval' (a nil value)

openresty/1.15.8.1

vaseniu avatar Dec 14 '21 03:12 vaseniu

got the following error, maybe you need to update you lua-resty-redis or upgrade openresty to 1.19.9.1

Error running script (call to f_e35dca329133b2e0872bde2ae06a1003e4642095): @enable_strict_lua:15: user_script:1: Script attempted to access nonexistent global variable 'PAGE_HASH_LIST'

zhuizhuhaomeng avatar Dec 17 '21 02:12 zhuizhuhaomeng