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

xgroup_create need a key word param such as 'create_if_not_exit' #199

Open
hsz1273327 opened this issue Jun 5, 2021 · 1 comment
Open

Comments

@hsz1273327
Copy link

Checklist

  • Python 3.8
  • Using hiredis
  • Using asyncio event loop
  • Does issue exists against the master branch of aredis?

Steps to reproduce

await redis.xgroup_create(resultQ, "testconsumer", '$')

Expected behavior

create a stream and add group "testconsumer" to it.

Actual behavior

got exception

aredis.exceptions.ResponseError: The XGROUP subcommand requires the key to exist. Note that for CREATE you may want to use the MKSTREAM option to create an empty stream automatically.

the api of xgroup_create need a key word param such as 'create_if_not_exit'

  • It is appreciated if error log can be provided
@nelreina
Copy link

In py_redis you have mkstream = True/False as in redis api .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants