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

Redis: get_or_create_multi fails on empty list #74

Closed
sqlalchemy-bot opened this Issue Feb 24, 2015 · 2 comments

Comments

Projects
None yet
1 participant
@sqlalchemy-bot

sqlalchemy-bot commented Feb 24, 2015

Migrated issue, originally created by Noam Kushinsky (noamk)

Similarly to #58, get_or_create_multi fails when it gets an empty list:

region.get_or_create_multi([], lambda: 0)

Results in:

ResponseError: wrong number of arguments for 'mget' command
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Feb 24, 2015

Michael Bayer (zzzeek) wrote:

  • Repaired the :meth:.CacheRegion.get_multi method when used with a
    list of zero length against the redis backend.
    fixes #74

229615b

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Feb 24, 2015

Changes by Michael Bayer (zzzeek):

  • changed status to closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment