Skip to content

json().mget gives incompatible results from real redis #340

@zh217

Description

@zh217

As an example:

import redis
import fakeredis

r = fakeredis.FakeStrictRedis()
r.json().set('a', '$', {'hello': 'world'})
print('fakeredis:')
print(r.json().mget(['a'], '$'))

r = redis.StrictRedis()
r.json().set('a', '$', {'hello': 'world'})
print('redis:')
print(r.json().mget(['a'], '$'))

This will print:

fakeredis:
[{'hello': 'world'}]
redis:
[[{'hello': 'world'}]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions