Skip to content

Provide added redis calls for JedisCluster to enable directing to single machine commands #764

@allanwax

Description

@allanwax

Doing a ping() on the cluster could be interpreted as meaningless and currently it will fail since no key is provided in the call. We should (perhaps) overload ping() and similar commands to accept parameters that allow you to direct the command to a certain machine. For example.

ping(String key): hash the key an pick the machine/slot associated with the key. Then send a ping() to it.

ping(int slot): send a ping() to the machine currently handling that slot.

Using this I can direct things to a single redis instance that does not make sense as a cluster..

Other possible candidates: blpop, brpop, echo, quit, flushdb, dbsize, select, etc.

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