| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <?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.12.0', '>=')) {
- /**
- * @internal
- */
- trait RelayCluster12Trait
- {
- public function delifeq($key, $value): \Relay\Cluster|false|int
- {
- return $this->initializeLazyObject()->delifeq(...\func_get_args());
- }
- public function hgetdel($key, $fields): \Relay\Cluster|array|false
- {
- return $this->initializeLazyObject()->hgetdel(...\func_get_args());
- }
- public function hgetex($hash, $fields, $expiry = null): \Relay\Cluster|array|false
- {
- return $this->initializeLazyObject()->hgetex(...\func_get_args());
- }
- public function hsetex($key, $fields, $expiry = null): \Relay\Cluster|false|int
- {
- return $this->initializeLazyObject()->hsetex(...\func_get_args());
- }
- public function vadd($key, $values, $element, $options = null): \Relay\Cluster|false|int
- {
- return $this->initializeLazyObject()->vadd(...\func_get_args());
- }
- public function vcard($key): \Relay\Cluster|false|int
- {
- return $this->initializeLazyObject()->vcard(...\func_get_args());
- }
- public function vdim($key): \Relay\Cluster|false|int
- {
- return $this->initializeLazyObject()->vdim(...\func_get_args());
- }
- public function vemb($key, $element, $raw = false): \Relay\Cluster|array|false
- {
- return $this->initializeLazyObject()->vemb(...\func_get_args());
- }
- public function vgetattr($key, $element, $raw = false): \Relay\Cluster|array|false|string
- {
- return $this->initializeLazyObject()->vgetattr(...\func_get_args());
- }
- public function vinfo($key): \Relay\Cluster|array|false
- {
- return $this->initializeLazyObject()->vinfo(...\func_get_args());
- }
- public function vismember($key, $element): \Relay\Cluster|bool
- {
- return $this->initializeLazyObject()->vismember(...\func_get_args());
- }
- public function vlinks($key, $element, $withscores): \Relay\Cluster|array|false
- {
- return $this->initializeLazyObject()->vlinks(...\func_get_args());
- }
- public function vrandmember($key, $count = 0): \Relay\Cluster|array|false|string
- {
- return $this->initializeLazyObject()->vrandmember(...\func_get_args());
- }
- public function vrange($key, $end, $start, $count = -1): \Relay\Cluster|array|bool
- {
- return $this->initializeLazyObject()->vrange(...\func_get_args());
- }
- public function vrem($key, $element): \Relay\Cluster|false|int
- {
- return $this->initializeLazyObject()->vrem(...\func_get_args());
- }
- public function vsetattr($key, $element, $attributes): \Relay\Cluster|false|int
- {
- return $this->initializeLazyObject()->vsetattr(...\func_get_args());
- }
- public function vsim($key, $member, $options = null): \Relay\Cluster|array|false
- {
- return $this->initializeLazyObject()->vsim(...\func_get_args());
- }
- public function waitaof(array|string $key_or_address, int $numlocal, int $numremote, int $timeout): \Relay\Cluster|array|false
- {
- return $this->initializeLazyObject()->waitaof(...\func_get_args());
- }
- public function xackdel($key, $group, $ids, $mode = null): \Relay\Cluster|array|false
- {
- return $this->initializeLazyObject()->xackdel(...\func_get_args());
- }
- public function xdelex($key, $ids, $mode = null): \Relay\Cluster|array|false
- {
- return $this->initializeLazyObject()->xdelex(...\func_get_args());
- }
- }
- } else {
- /**
- * @internal
- */
- trait RelayCluster12Trait
- {
- public function waitaof(array|string $key_or_address, int $numlocal, int $numremote, int $timeout): \Relay\Relay|array|false
- {
- return $this->initializeLazyObject()->waitaof(...\func_get_args());
- }
- }
- }
|