Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supports LRANGE/ZRANGE/ZREVRANGE/ZRANGEBYSCORE/ZREVRANGEBYSCORE/ZSCAN hot querying in Redis Cache #2752

Closed
chejinge opened this issue Jun 20, 2024 · 4 comments
Labels
✏️ Feature New feature or request

Comments

@chejinge
Copy link
Collaborator

chejinge commented Jun 20, 2024

Which PikiwiDB functionalities are relevant/related to the feature request?

目前 RedisCache 批量查询仅支持了 string 类型的 MGET 命令,还需要在 hashtable/list/zset 等复合数据类型中支持 HMGET/LRANGE/ZRANGE/ZREVRANGE/ZRANGEBYSCORE/ZREVRANGEBYSCORE/ZSCAN 等命令。
Hmget 不需要做的原因是 hget和HMGET都是只去查询一个key 所以HMGET不需要考虑这些

Description

支持多个key 查询缓存可以提升性能,但是要注意 load 到缓存中的 key 对应的 field 不能过大,否则会把内存打满。

实现方案可以参考 Mget PR 2694

Proposed solution

如上所述

Alternatives considered

可以联系chejinge

@chejinge chejinge added the ✏️ Feature New feature or request label Jun 20, 2024
@chejinge chejinge changed the title Hmget support multi key form cache HMGET supports querying multiple keys for cache. Jun 20, 2024
@AlexStocks AlexStocks changed the title HMGET supports querying multiple keys for cache. supports HMGET hot querying in Redis Cache. Jun 20, 2024
@AlexStocks AlexStocks changed the title supports HMGET hot querying in Redis Cache. supports HMGET hot querying in Redis Cache Jun 20, 2024
@AlexStocks AlexStocks changed the title supports HMGET hot querying in Redis Cache supports HMGET/LRANGE/ZRANGE/ZREVRANGE hot querying in Redis Cache Jun 20, 2024
@AlexStocks AlexStocks changed the title supports HMGET/LRANGE/ZRANGE/ZREVRANGE hot querying in Redis Cache supports HMGET/LRANGE/ZRANGE/ZREVRANGE/ZRANGEBYSCORE/ZREVRANGEBYSCORE/ZSCAN hot querying in Redis Cache Jun 20, 2024
@chejinge chejinge changed the title supports HMGET/LRANGE/ZRANGE/ZREVRANGE/ZRANGEBYSCORE/ZREVRANGEBYSCORE/ZSCAN hot querying in Redis Cache supports LRANGE/ZRANGE/ZREVRANGE/ZRANGEBYSCORE/ZREVRANGEBYSCORE/ZSCAN hot querying in Redis Cache Jun 21, 2024
@chejinge
Copy link
Collaborator Author

@ZhuHaiyang

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@ Zhu Haiyang

@chejinge
Copy link
Collaborator Author

guoweijian

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Fruit not seen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✏️ Feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants