Skip to content

Handle unknown commands correctly #46

@zuiderkwast

Description

@zuiderkwast

By default, we assume the key is the first argument after the command name, with known exceptions. It's not correct in some cases and it's not compatible with future Redis commands.

A better fallback would be to ask Redis about the keys in a command. It can be done using the COMMAND command (with logic for all commands that can be cached) or COMMAND GETKEYS for a specific command string, if the syntax is too complex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions