Skip to content

Return value of EXISTS is inconsistent with core redis #54

Open
@aeisenberg

Description

@aeisenberg

This library, will return true or false for all calls to EXISTS. However, this is not consistent with the return value for core redis. According to the documentation:

Return value

Integer reply, specifically:

  • 1 if the key exists.
  • 0 if the key does not exist.

Since Redis 3.0.3 the command accepts a variable number of keys and the return value is generalized:

  • The number of keys existing among the ones specified as arguments. Keys mentioned multiple times and existing are counted multiple times.

When passing multiple keys, there is no way to determine how many of the keys exist.

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