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

Need more methods for cache.

Open bigbeer1 opened this issue 3 years ago • 5 comments

cache redis 方式外部调用只有 get set和一些常规的 希望提供 scan hset hget

bigbeer1 avatar Aug 19 '22 04:08 bigbeer1

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


There are only get set and some regular external calls in cache redis mode, which hope to provide scan hset hget

Issues-translate-bot avatar Aug 19 '22 04:08 Issues-translate-bot

cache redis 方式外部调用只有 get set和一些常规的 希望提供 scan hset hget

目前只能自己重新实例化一个go-redis的对象来实现,你是什么场景下需要这种需求????

jsonMark avatar Aug 19 '22 06:08 jsonMark

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


The external call in cache redis mode only has get set and some general hope to provide scan hset hget

At present, you can only re-instantiate a go-redis object to achieve this. In what scenario do you need this kind of demand? ? ? ?

Issues-translate-bot avatar Aug 19 '22 06:08 Issues-translate-bot

当我们使用 mongoc sqlc 的时候,我们希望 cache 的结构仅仅只是一种 kv 结构。不应该支持其他的结构,否则会造成缓存失效特别麻烦。可以讲一下的场景需求。

re-dylan avatar Aug 22 '22 12:08 re-dylan

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


When we use mongoc sqlc, we hope that the structure of the cache is just a kv structure. Other structures should not be supported, otherwise cache invalidation will be particularly troublesome. Can talk about the needs of the scene.

Issues-translate-bot avatar Aug 22 '22 12:08 Issues-translate-bot

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

github-actions[bot] avatar Aug 23 '23 01:08 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 17 '24 01:03 github-actions[bot]