Bumps predis/predis from 1.1.10 to 2.0.0.
Release notes
Sourced from predis/predis's releases.
v2.0.0
-
Dropped support for PHP 7.1 and older
-
Accepted values for some client options have changed, this is the new list of
accepted values:
aggregate
: callable returning an aggregate connection.
cluster
: string value (predis
, redis
), callable returning an aggregate
connection.
replication
: string value (predis
, sentinel
), callable returning an
aggregate connection.
commands
: command factory, named array mapping command IDs to PHP classes,
callable returning a command factory or a named array.
connections
: connection factory, callable object returning a connection
factory, named array mapping URI schemes to PHP classes, string identifying
a supported combination of configurations for the connection factory.
prefix
: string value, command processor, callable.
exceptions
: boolean.
Note that both the cluster
and replication
options now return a closure
acting as initializer instead of an aggregate connection instance.
-
The connections
client option now accepts certain string values identifying
certain combinations of configurations for the connection factory. Currenlty
this is used to provide a short way to configure Predis to load our phpiredis
based connection backends simply, accepted values are:
phpiredis-stream
maps Phpiredis\Connection\PhpiredisStreamConnection
to
tcp
, redis
, unix
URI schemes.
phpiredis-socket
maps Phpiredis\Connection\PhpiredisSocketConnection
to
tcp
, redis
, unix
URI schemes.
phpiredis-stream
is simply an alias of phpiredis-stream
.
-
Added the new Predis\Cluster\Hash\PhpiredisCRC16
class using ext-phpiredis
to speed-up the generation of the CRC16 hash of keys for redis-cluster. Predis
automatically uses this class when ext-phpiredis is loaded, but it is possible
to configure the hash generator using the new crc16
client option (accepted
values predis
, phpiredis
or an hash generator instance).
-
Replication backends now use the role
parameter instead of alias
in order
to distinguish the role of a connection. Accepted values are master
, slave
and, for redis-sentinel, sentinel
. This led to a redesign of how connections
can be retrieved from replication backends: the method getConnectionById() now
retrieves a connection only by its ID (ip:port pair), to get a connection by
its alias there is the new method getConnectionByAlias(). This method is not
supported by the redis-sentinel backend due to its dynamic nature (connections
are retrieved and initialized at runtime from sentinels) but it is possible to
get a single connection from the pool by using its ID. It is also possible to
retrive a connection by role using the method getConnectionByRole().
... (truncated)
Changelog
Sourced from predis/predis's changelog.
v2.0.0 (2022-06-08)
-
Dropped support for PHP 7.1 and older
-
Accepted values for some client options have changed, this is the new list of
accepted values:
aggregate
: callable returning an aggregate connection.
cluster
: string value (predis
, redis
), callable returning an aggregate
connection.
replication
: string value (predis
, sentinel
), callable returning an
aggregate connection.
commands
: command factory, named array mapping command IDs to PHP classes,
callable returning a command factory or a named array.
connections
: connection factory, callable object returning a connection
factory, named array mapping URI schemes to PHP classes, string identifying
a supported combination of configurations for the connection factory.
prefix
: string value, command processor, callable.
exceptions
: boolean.
Note that both the cluster
and replication
options now return a closure
acting as initializer instead of an aggregate connection instance.
-
The connections
client option now accepts certain string values identifying
certain combinations of configurations for the connection factory. Currenlty
this is used to provide a short way to configure Predis to load our phpiredis
based connection backends simply, accepted values are:
phpiredis-stream
maps Phpiredis\Connection\PhpiredisStreamConnection
to
tcp
, redis
, unix
URI schemes.
phpiredis-socket
maps Phpiredis\Connection\PhpiredisSocketConnection
to
tcp
, redis
, unix
URI schemes.
phpiredis-stream
is simply an alias of phpiredis-stream
.
-
Added the new Predis\Cluster\Hash\PhpiredisCRC16
class using ext-phpiredis
to speed-up the generation of the CRC16 hash of keys for redis-cluster. Predis
automatically uses this class when ext-phpiredis is loaded, but it is possible
to configure the hash generator using the new crc16
client option (accepted
values predis
, phpiredis
or an hash generator instance).
-
Replication backends now use the role
parameter instead of alias
in order
to distinguish the role of a connection. Accepted values are master
, slave
and, for redis-sentinel, sentinel
. This led to a redesign of how connections
can be retrieved from replication backends: the method getConnectionById() now
retrieves a connection only by its ID (ip:port pair), to get a connection by
its alias there is the new method getConnectionByAlias(). This method is not
supported by the redis-sentinel backend due to its dynamic nature (connections
are retrieved and initialized at runtime from sentinels) but it is possible to
get a single connection from the pool by using its ID. It is also possible to
retrive a connection by role using the method getConnectionByRole().
... (truncated)
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it
@dependabot merge
will merge this PR after your CI passes on it
@dependabot squash and merge
will squash and merge this PR after your CI passes on it
@dependabot cancel merge
will cancel a previously requested merge and block automerging
@dependabot reopen
will reopen this PR if it is closed
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependencies