Skip to content

Deprecation of Credis_Cluster is not in line with documentation #151

@talo11

Description

@talo11

The class Credis_Cluster is marked as deprecated, and so are methods in Credis_Sentinel that are referencing Credis_Cluster, such as createCluster() and getCluster().

However, the documentation in README.markdown suggests using these methods for automatic failover with Sentinel, like this:

$sentinel = new Credis_Sentinel(new Credis_Client('127.0.0.1',26379));
$masterAddress = $sentinel->getMasterAddressByName('mymaster');
$cluster = $sentinel->getCluster('mymaster');

Is the documentation outdated? If so, how should automatic failover with Sentinel be set up using Credis to be compatible with future versions?

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