Skip to content

Redis failing with disabled list_like behaviour #832

@anna-charlotte

Description

@anna-charlotte

Redis' __len__ method is based on the _offset2id param. If da with list_like = False => len(da) = 0.
With this, for example the match function returns in the very beginning due to length of da = 0, without actually matching.

As far as I understood, this has been implemented this way, because redis does not have an efficient api to get the number of keys, like the other storage backends have.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions