Skip to content

Use \RedisSentinel instead of Credis #146

Description

@eschultz-magix

The usages of a Redis library are very inconsistent.

Having 1 Redis server without sentinel --> phpredis with \Redis
Having X Redis server in a cluster --> not supported
Having X Redis server with sentinel --> Credis in standalone mode

In Sentinel mode, one of the Sentinel instances are picked, getMasterAddrByName() is called and then a connection is established to the master where all all/write operations are done like in normal Redis mode.

Credis uses phpredis by default if available, but phpredis also has a \RedisSentinel class which has the getMasterAddrByName() function.

TL;DR: Credis is only used in Sentinel mode and can get replaced by phpredis, which is required by QueuedTracking anyway.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions