框架升级及修复升级后的bug
This commit is contained in:
+27
-1
@@ -11,7 +11,33 @@
|
||||
|
||||
namespace Symfony\Component\Cache\Traits\Relay;
|
||||
|
||||
if (version_compare(phpversion('relay'), '0.50.0', '>=')) {
|
||||
if (version_compare(phpversion('relay'), '0.50.2', '>=')) {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
trait Relay40Trait
|
||||
{
|
||||
public function blmovem($src, $dst, $wherefrom, $whereto, $timeout, $options = null): \Relay\Relay|array|false|null
|
||||
{
|
||||
return $this->initializeLazyObject()->blmovem(...\func_get_args());
|
||||
}
|
||||
|
||||
public function lmovem($src, $dst, $wherefrom, $whereto, $options = null): \Relay\Relay|array|false|null
|
||||
{
|
||||
return $this->initializeLazyObject()->lmovem(...\func_get_args());
|
||||
}
|
||||
|
||||
public function sdiffcard($keys, $options = null): \Relay\Relay|false|int
|
||||
{
|
||||
return $this->initializeLazyObject()->sdiffcard(...\func_get_args());
|
||||
}
|
||||
|
||||
public function sunioncard($keys, $options = null): \Relay\Relay|false|int
|
||||
{
|
||||
return $this->initializeLazyObject()->sunioncard(...\func_get_args());
|
||||
}
|
||||
}
|
||||
} elseif (version_compare(phpversion('relay'), '0.50.0', '>=')) {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,286 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\Cache\Traits\Relay;
|
||||
|
||||
if (version_compare(phpversion('relay'), '0.50.2', '>=')) {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
trait Relay502Trait
|
||||
{
|
||||
public function __construct($host = null, $port = 6379, $connect_timeout = 0.0, $command_timeout = 0.0, #[\SensitiveParameter] $context = null, $database = 0)
|
||||
{
|
||||
$this->initializeLazyObject()->__construct(...\func_get_args());
|
||||
}
|
||||
|
||||
public function connect($host, $port = 6379, $timeout = 0.0, $persistent_id = null, $retry_interval = 0, $read_timeout = 0.0, #[\SensitiveParameter] $context = null, $database = 0): bool
|
||||
{
|
||||
return $this->initializeLazyObject()->connect(...\func_get_args());
|
||||
}
|
||||
|
||||
public function expireat($key, $timestamp, $mode = null): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->expireat(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hexists($key, $member): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->hexists(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hget($key, $member): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->hget(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hgetall($key): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->hgetall(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hkeys($key): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->hkeys(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hmget($key, $members): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->hmget(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hmset($key, $members): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->hmset(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hrandfield($key, $options = null): \Relay\Relay|array|false|string|null
|
||||
{
|
||||
return $this->initializeLazyObject()->hrandfield(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hsetnx($key, $member, $value): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->hsetnx(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hstrlen($key, $member): \Relay\Relay|false|int
|
||||
{
|
||||
return $this->initializeLazyObject()->hstrlen(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hvals($key): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->hvals(...\func_get_args());
|
||||
}
|
||||
|
||||
public function lpop($key, $count = 0): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->lpop(...\func_get_args());
|
||||
}
|
||||
|
||||
public function multi($mode = \Relay\Relay::MULTI): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->multi(...\func_get_args());
|
||||
}
|
||||
|
||||
public function pconnect($host, $port = 6379, $timeout = 0.0, $persistent_id = null, $retry_interval = 0, $read_timeout = 0.0, #[\SensitiveParameter] $context = null, $database = 0): bool
|
||||
{
|
||||
return $this->initializeLazyObject()->pconnect(...\func_get_args());
|
||||
}
|
||||
|
||||
public function pexpire($key, $milliseconds, $mode = null): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->pexpire(...\func_get_args());
|
||||
}
|
||||
|
||||
public function pexpireat($key, $timestamp_ms, $mode = null): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->pexpireat(...\func_get_args());
|
||||
}
|
||||
|
||||
public function rpop($key, $count = 0): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->rpop(...\func_get_args());
|
||||
}
|
||||
|
||||
public function sort($key, $options = null): \Relay\Relay|array|false|int
|
||||
{
|
||||
return $this->initializeLazyObject()->sort(...\func_get_args());
|
||||
}
|
||||
|
||||
public function sort_ro($key, $options = null): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->sort_ro(...\func_get_args());
|
||||
}
|
||||
|
||||
public function spop($set, $count = 0): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->spop(...\func_get_args());
|
||||
}
|
||||
|
||||
public function srandmember($set, $count = 0): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->srandmember(...\func_get_args());
|
||||
}
|
||||
|
||||
public function vlinks($key, $element, $withscores = false): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->vlinks(...\func_get_args());
|
||||
}
|
||||
|
||||
public function zpopmax($key, $count = null): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->zpopmax(...\func_get_args());
|
||||
}
|
||||
|
||||
public function zpopmin($key, $count = null): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->zpopmin(...\func_get_args());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
trait Relay502Trait
|
||||
{
|
||||
public function __construct($host = null, $port = 6379, $connect_timeout = 0.0, $command_timeout = 0.0, #[\SensitiveParameter] $context = [], $database = 0)
|
||||
{
|
||||
$this->initializeLazyObject()->__construct(...\func_get_args());
|
||||
}
|
||||
|
||||
public function connect($host, $port = 6379, $timeout = 0.0, $persistent_id = null, $retry_interval = 0, $read_timeout = 0.0, #[\SensitiveParameter] $context = [], $database = 0): bool
|
||||
{
|
||||
return $this->initializeLazyObject()->connect(...\func_get_args());
|
||||
}
|
||||
|
||||
public function expireat($key, $timestamp): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->expireat(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hexists($hash, $member): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->hexists(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hget($hash, $member): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->hget(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hgetall($hash): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->hgetall(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hkeys($hash): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->hkeys(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hmget($hash, $members): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->hmget(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hmset($hash, $members): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->hmset(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hrandfield($hash, $options = null): \Relay\Relay|array|false|string|null
|
||||
{
|
||||
return $this->initializeLazyObject()->hrandfield(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hsetnx($hash, $member, $value): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->hsetnx(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hstrlen($hash, $member): \Relay\Relay|false|int
|
||||
{
|
||||
return $this->initializeLazyObject()->hstrlen(...\func_get_args());
|
||||
}
|
||||
|
||||
public function hvals($hash): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->hvals(...\func_get_args());
|
||||
}
|
||||
|
||||
public function lpop($key, $count = 1): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->lpop(...\func_get_args());
|
||||
}
|
||||
|
||||
public function multi($mode = 0): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->multi(...\func_get_args());
|
||||
}
|
||||
|
||||
public function pconnect($host, $port = 6379, $timeout = 0.0, $persistent_id = null, $retry_interval = 0, $read_timeout = 0.0, #[\SensitiveParameter] $context = [], $database = 0): bool
|
||||
{
|
||||
return $this->initializeLazyObject()->pconnect(...\func_get_args());
|
||||
}
|
||||
|
||||
public function pexpire($key, $milliseconds): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->pexpire(...\func_get_args());
|
||||
}
|
||||
|
||||
public function pexpireat($key, $timestamp_ms): \Relay\Relay|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->pexpireat(...\func_get_args());
|
||||
}
|
||||
|
||||
public function rpop($key, $count = 1): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->rpop(...\func_get_args());
|
||||
}
|
||||
|
||||
public function sort($key, $options = []): \Relay\Relay|array|false|int
|
||||
{
|
||||
return $this->initializeLazyObject()->sort(...\func_get_args());
|
||||
}
|
||||
|
||||
public function sort_ro($key, $options = []): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->sort_ro(...\func_get_args());
|
||||
}
|
||||
|
||||
public function spop($set, $count = 1): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->spop(...\func_get_args());
|
||||
}
|
||||
|
||||
public function srandmember($set, $count = 1): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->srandmember(...\func_get_args());
|
||||
}
|
||||
|
||||
public function vlinks($key, $element, $withscores): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->vlinks(...\func_get_args());
|
||||
}
|
||||
|
||||
public function zpopmax($key, $count = 1): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->zpopmax(...\func_get_args());
|
||||
}
|
||||
|
||||
public function zpopmin($key, $count = 1): \Relay\Relay|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->zpopmin(...\func_get_args());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,48 @@
|
||||
|
||||
namespace Symfony\Component\Cache\Traits\Relay;
|
||||
|
||||
if (version_compare(phpversion('relay'), '0.50.0', '>=')) {
|
||||
if (version_compare(phpversion('relay'), '0.50.2', '>=')) {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
trait RelayCluster40Trait
|
||||
{
|
||||
public function blmovem($src, $dst, $wherefrom, $whereto, $timeout, $options = null): \Relay\Cluster|array|false|null
|
||||
{
|
||||
return $this->initializeLazyObject()->blmovem(...\func_get_args());
|
||||
}
|
||||
|
||||
public function getDbNum(): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->getDbNum(...\func_get_args());
|
||||
}
|
||||
|
||||
public function lmovem($src, $dst, $wherefrom, $whereto, $options = null): \Relay\Cluster|array|false|null
|
||||
{
|
||||
return $this->initializeLazyObject()->lmovem(...\func_get_args());
|
||||
}
|
||||
|
||||
public function move($key, $db): \Relay\Cluster|false|int
|
||||
{
|
||||
return $this->initializeLazyObject()->move(...\func_get_args());
|
||||
}
|
||||
|
||||
public function sdiffcard($keys, $options = null): \Relay\Cluster|false|int
|
||||
{
|
||||
return $this->initializeLazyObject()->sdiffcard(...\func_get_args());
|
||||
}
|
||||
|
||||
public function select($db): \Relay\Cluster|bool|string
|
||||
{
|
||||
return $this->initializeLazyObject()->select(...\func_get_args());
|
||||
}
|
||||
|
||||
public function sunioncard($keys, $options = null): \Relay\Cluster|false|int
|
||||
{
|
||||
return $this->initializeLazyObject()->sunioncard(...\func_get_args());
|
||||
}
|
||||
}
|
||||
} elseif (version_compare(phpversion('relay'), '0.50.0', '>=')) {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\Cache\Traits\Relay;
|
||||
|
||||
if (version_compare(phpversion('relay'), '0.50.2', '>=')) {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
trait RelayCluster502Trait
|
||||
{
|
||||
public function expireat($key, $timestamp, $mode = null): \Relay\Cluster|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->expireat(...\func_get_args());
|
||||
}
|
||||
|
||||
public function lpop($key, $count = 0): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->lpop(...\func_get_args());
|
||||
}
|
||||
|
||||
public function pexpire($key, $milliseconds, $mode = null): \Relay\Cluster|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->pexpire(...\func_get_args());
|
||||
}
|
||||
|
||||
public function pexpireat($key, $timestamp_ms, $mode = null): \Relay\Cluster|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->pexpireat(...\func_get_args());
|
||||
}
|
||||
|
||||
public function rpop($key, $count = 0): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->rpop(...\func_get_args());
|
||||
}
|
||||
|
||||
public function sort($key, $options = null): \Relay\Cluster|array|false|int
|
||||
{
|
||||
return $this->initializeLazyObject()->sort(...\func_get_args());
|
||||
}
|
||||
|
||||
public function sort_ro($key, $options = null): \Relay\Cluster|array|false|int
|
||||
{
|
||||
return $this->initializeLazyObject()->sort_ro(...\func_get_args());
|
||||
}
|
||||
|
||||
public function spop($key, $count = 0): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->spop(...\func_get_args());
|
||||
}
|
||||
|
||||
public function srandmember($key, $count = 0): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->srandmember(...\func_get_args());
|
||||
}
|
||||
|
||||
public function vlinks($key, $element, $withscores = false): \Relay\Cluster|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->vlinks(...\func_get_args());
|
||||
}
|
||||
|
||||
public function xreadgroup($group, $consumer, $streams, $count = 1, $block = 1): \Relay\Cluster|array|bool|null
|
||||
{
|
||||
return $this->initializeLazyObject()->xreadgroup(...\func_get_args());
|
||||
}
|
||||
|
||||
public function zpopmax($key, $count = null): \Relay\Cluster|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->zpopmax(...\func_get_args());
|
||||
}
|
||||
|
||||
public function zpopmin($key, $count = null): \Relay\Cluster|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->zpopmin(...\func_get_args());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
trait RelayCluster502Trait
|
||||
{
|
||||
public function expireat($key, $timestamp): \Relay\Cluster|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->expireat(...\func_get_args());
|
||||
}
|
||||
|
||||
public function lpop($key, $count = 1): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->lpop(...\func_get_args());
|
||||
}
|
||||
|
||||
public function pexpire($key, $milliseconds): \Relay\Cluster|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->pexpire(...\func_get_args());
|
||||
}
|
||||
|
||||
public function pexpireat($key, $timestamp_ms): \Relay\Cluster|bool
|
||||
{
|
||||
return $this->initializeLazyObject()->pexpireat(...\func_get_args());
|
||||
}
|
||||
|
||||
public function rpop($key, $count = 1): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->rpop(...\func_get_args());
|
||||
}
|
||||
|
||||
public function sort($key, $options = []): \Relay\Cluster|array|false|int
|
||||
{
|
||||
return $this->initializeLazyObject()->sort(...\func_get_args());
|
||||
}
|
||||
|
||||
public function sort_ro($key, $options = []): \Relay\Cluster|array|false|int
|
||||
{
|
||||
return $this->initializeLazyObject()->sort_ro(...\func_get_args());
|
||||
}
|
||||
|
||||
public function spop($key, $count = 1): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->spop(...\func_get_args());
|
||||
}
|
||||
|
||||
public function srandmember($key, $count = 1): mixed
|
||||
{
|
||||
return $this->initializeLazyObject()->srandmember(...\func_get_args());
|
||||
}
|
||||
|
||||
public function vlinks($key, $element, $withscores): \Relay\Cluster|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->vlinks(...\func_get_args());
|
||||
}
|
||||
|
||||
public function xreadgroup($key, $consumer, $streams, $count = 1, $block = 1): \Relay\Cluster|array|bool|null
|
||||
{
|
||||
return $this->initializeLazyObject()->xreadgroup(...\func_get_args());
|
||||
}
|
||||
|
||||
public function zpopmax($key, $count = 1): \Relay\Cluster|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->zpopmax(...\func_get_args());
|
||||
}
|
||||
|
||||
public function zpopmin($key, $count = 1): \Relay\Cluster|array|false
|
||||
{
|
||||
return $this->initializeLazyObject()->zpopmin(...\func_get_args());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user