kvrocks icon indicating copy to clipboard operation
kvrocks copied to clipboard

Hope Kvrocks can support full commands of the stream data type

Open jcy1001 opened this issue 1 year ago • 5 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Motivation

Same as the title

Solution

No response

Are you willing to submit a PR?

  • [ ] I'm willing to submit a PR!

jcy1001 avatar Jul 05 '23 06:07 jcy1001

@jcy1001 I would like to help you with your question/request/issue. But unfortunately, I don't know the language and Google Translate said I hope to increase the stream function of redis and realize the simple mq function which I didn't fully understand.

torwig avatar Jul 05 '23 06:07 torwig

hi, redis has stream function in t_stream.c , redis7.0 has xgroupCreate like command , but our project not implemented, i only find xadd xdel xinfo ..in cmd_stream.cc, thanks ~

jcy1001 avatar Jul 05 '23 07:07 jcy1001

this is our project

REDIS_REGISTER_COMMANDS(MakeCmdAttr<CommandXAdd>("xadd", -5, "write", 1, 1, 1), MakeCmdAttr<CommandXDel>("xdel", -3, "write", 1, 1, 1), MakeCmdAttr<CommandXLen>("xlen", -2, "read-only", 1, 1, 1), MakeCmdAttr<CommandXInfo>("xinfo", -2, "read-only", 0, 0, 0), MakeCmdAttr<CommandXRange>("xrange", -4, "read-only", 1, 1, 1), MakeCmdAttr<CommandXRevRange>("xrevrange", -2, "read-only", 1, 1, 1), MakeCmdAttr<CommandXRead>("xread", -4, "read-only", 0, 0, 0), MakeCmdAttr<CommandXTrim>("xtrim", -4, "write", 1, 1, 1), MakeCmdAttr<CommandXSetId>("xsetid", -3, "write", 1, 1, 1))

this is redis XACK XADD XCLAIM XDEL XGROUP XINFO XLEN XPENDING XRANGE XREAD XREADGROUP XREVRANGE XTRIM

jcy1001 avatar Jul 05 '23 07:07 jcy1001

We are implementing features to be compatible with Redis 7.0, it may need some time. I can drive this task when i'm free.

Yangsx-1 avatar Jul 05 '23 07:07 Yangsx-1

@jcy1001 Yes, you are right, currently, consumer groups aren't implemented in Kvrocks.

torwig avatar Jul 05 '23 07:07 torwig