2881099 / FreeRedis

🦄 FreeRedis is .NET40+ redis client. supports cluster, sentinel, master-slave, pub-sub, lua, pipeline, transaction, streams, redisearch, client-side-caching, and pooling.
MIT License
925 stars 166 forks source link

Keys好像没有加前缀prefix #203

Open icejd opened 2 months ago

icejd commented 2 months ago

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

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

icejd commented 2 months ago

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

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

2881099 commented 2 months ago

临时用 lua 解决