go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

cache.Cache need Fuzzy query keys

Open shrkx opened this issue 3 years ago • 4 comments

cache.Cache need Fuzzy query keys 中文:cache.Cache 进行模糊查询keys的方法

要是可以有一个do原始方法就好了

shrkx avatar Sep 04 '22 04:09 shrkx

The keys command is not recommended for use in a production environment. https://redis.io/commands/keys/

chenquan avatar Sep 04 '22 09:09 chenquan

keys不建议在生产环境中使用该命令。 https://redis.io/commands/keys/

那进行模糊删除的时候,怎么操作呢?

shrkx avatar Sep 07 '22 12:09 shrkx

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


keys This command is not recommended for production environments. https://redis.io/commands/keys/

How to operate when fuzzy deletion is performed?

Issues-translate-bot avatar Sep 07 '22 12:09 Issues-translate-bot

I prefer to specify the exact key to delete the data. You can pre-store a class of key into the collection, and then take out the key in the collection to delete.

chenquan avatar Sep 08 '22 09:09 chenquan

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 09 '23 01:09 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Mar 14 '24 01:03 github-actions[bot]