IT博客汇
首页
精华
技术
设计
资讯
扯淡
权利声明
登录
注册
Redis批量按前缀删除key
coder4
发表于
2022-12-02 08:11:12
love
0
EVAL "local keys = redis.call('keys', ARGV[1]) \n for i=1,#keys,5000 do \n redis.call('del', unpack(keys, i, math.min(i+4999, #keys))) \n end \n return keys" 0 *