Skip to content

Making cmdable an interface #341

@artushin

Description

@artushin

Would you be amenable to making cmdable an exported interface? I ask because I'm running a single instance redis docker container in dev and a full cluster in prod, but my code relies on using the global client established in my redis package that wraps go-redis. With the current setup, I can't do that because the ClusterClient and Client are separate types without a shared interface. Since you already use cmdable on both structs, it would be easy to make that an interface that would allow access only to the high level redis interface.

Let me know if that sounds good and I can do a PR.

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