FreeRedis icon indicating copy to clipboard operation
FreeRedis copied to clipboard

Keys好像没有加前缀prefix

Open icejd opened this issue 1 year ago • 2 comments

Instance.Keys(pattern); 日志里显示:

KEYS resumefile:5832351:50* 没有带前缀,其它操作都有带前缀 版本号:1.2.15

icejd avatar Sep 01 '24 03:09 icejd

因为我要先取得数组,然后进行批量删除,但现在Instance.Keys(pattern);如果我手动加了前缀,会取得完整路径的数组,但是Instance.Del(keys);删除的时候又会自动加上前缀

KEYS ygresume:resumefile:5832351:50* DEL ygresume:ygresume:resumefile:5832351:50:pdf 有点烦恼

icejd avatar Sep 01 '24 03:09 icejd

临时用 lua 解决

2881099 avatar Sep 02 '24 05:09 2881099