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

Let Pika Support RedisJSON #2652

Open
AlexStocks opened this issue May 14, 2024 · 2 comments
Open

Let Pika Support RedisJSON #2652

AlexStocks opened this issue May 14, 2024 · 2 comments
Assignees
Labels
✏️ Feature New feature or request

Comments

@AlexStocks
Copy link
Collaborator

AlexStocks commented May 14, 2024

RedisJSON 是什么?

在 Redis 官方文档 [1] 中,对 RedisJSON 有如下描述:

Redis Stack 的 JSON 功能为 Redis 提供了 JavaScript 对象表示法(JSON)支持。它使你能够在 Redis 数据库中存储、更新和检索 JSON 值,就像处理其他任何 Redis 数据类型一样。Redis JSON 还能与 Search 和 Query 功能无缝集成,允许你对 JSON 文档进行索引和查询。

Pika 已经支持 String, Hash, List, Zset, Set, Geo, Hyperloglog, Pubsub, Bitmap, Stream, ACL 等 Redis 数据结构,RedisJSON 可以认为是一种需要在 Pika 中有待支持的新 Redis 数据结构。近一年内,很多用户强烈要求 Pika 支持这种数据结构,以方便他们处理和查询 JSON 文档。

怎么在 Pika 中支持 RedisJSON?

就像其他数据结构一样,你需要:
1 首先在 Pika 最新的存储引擎 Floyd 中支持 RedisJSON 这种数据类型。
2 根据参考文档 [1] 找出需要实现的 Redis 命令,以 "存储、更新和检索 JSON 值"。
3 提交功能实现后,添加测试用例,Pika 目前测试集有三种:C++ GTest\Redis TCL TEST\Go Test。

参考文档

[1] RedisJSON: https://redis.io/docs/data-types/json/
[2] Floyd #2052

@AlexStocks AlexStocks added the ✏️ Feature New feature or request label May 14, 2024
@bigdaronlee163
Copy link

bigdaronlee163 commented May 21, 2024

Could you assign this task to me ? I have experience in Redis and have supported the development of Tair Go SDK, which is a memory database compatible with Redis protocol

@AlexStocks
Copy link
Collaborator Author

AlexStocks commented May 22, 2024

Could you assign this task to me ? I have experience in Redis and have supported the development of Tair Go SDK, which is a memory database compatible with Redis protocol

Welcome. I have assigned this task to you. Thanks.

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

2 participants