eval "local rst={}; local rst1=redis.call('keys','shopcar_user_*'); for i,v in pairs(rst1) do for j,e in pairs(redis.call('HKEYS', v)) do redis.call('Hdel',v,e) end; end; return rst" 0
redis 批量删除hashkey lua脚本
最新推荐文章于 2023-03-31 15:25:47 发布
eval "local rst={}; local rst1=redis.call('keys','shopcar_user_*'); for i,v in pairs(rst1) do for j,e in pairs(redis.call('HKEYS', v)) do redis.call('Hdel',v,e) end; end; return rst" 0