客户端在粘贴 Lua 脚本时遇到一个错误
作者: xavier-xu99创建于 2023年12月5日更新于 2023年12月5日
标签bug
这是我的脚本内容。 EVAL "local currentDate = KEYS[1]; local result = {}; for i, key in pairs(Redis.call('KEYS', '2023????')) do if tonumber(key) < tonumber(currentDate) then Redis.call('DEL', key); table.insert(result, key); end end; Redis.call('EXPIRE', currentDate, 86400); return result" 1 20230323 ;
当我将此脚本复制并粘贴到客户端中时,<(小于)符号后的所有内容都丢失了。我必须手动输入<符号,然后单独将剩余内容粘贴到客户端中。
内容来源: redis/RedisDesktopManager