diff options
author | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
commit | bf6655a534a6775d30cafa67bd801276bda1d98d (patch) | |
tree | c6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/symfony/cache/Traits/Redis6Proxy.php | |
parent | 94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff) | |
download | AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip |
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/symfony/cache/Traits/Redis6Proxy.php')
-rw-r--r-- | vendor/symfony/cache/Traits/Redis6Proxy.php | 1293 |
1 files changed, 1293 insertions, 0 deletions
diff --git a/vendor/symfony/cache/Traits/Redis6Proxy.php b/vendor/symfony/cache/Traits/Redis6Proxy.php new file mode 100644 index 0000000..0680404 --- /dev/null +++ b/vendor/symfony/cache/Traits/Redis6Proxy.php | |||
@@ -0,0 +1,1293 @@ | |||
1 | <?php | ||
2 | |||
3 | /* | ||
4 | * This file is part of the Symfony package. | ||
5 | * | ||
6 | * (c) Fabien Potencier <fabien@symfony.com> | ||
7 | * | ||
8 | * For the full copyright and license information, please view the LICENSE | ||
9 | * file that was distributed with this source code. | ||
10 | */ | ||
11 | |||
12 | namespace Symfony\Component\Cache\Traits; | ||
13 | |||
14 | use Symfony\Component\VarExporter\LazyObjectInterface; | ||
15 | use Symfony\Component\VarExporter\LazyProxyTrait; | ||
16 | use Symfony\Contracts\Service\ResetInterface; | ||
17 | |||
18 | // Help opcache.preload discover always-needed symbols | ||
19 | class_exists(\Symfony\Component\VarExporter\Internal\Hydrator::class); | ||
20 | class_exists(\Symfony\Component\VarExporter\Internal\LazyObjectRegistry::class); | ||
21 | class_exists(\Symfony\Component\VarExporter\Internal\LazyObjectState::class); | ||
22 | |||
23 | /** | ||
24 | * @internal | ||
25 | */ | ||
26 | class Redis6Proxy extends \Redis implements ResetInterface, LazyObjectInterface | ||
27 | { | ||
28 | use LazyProxyTrait { | ||
29 | resetLazyObject as reset; | ||
30 | } | ||
31 | |||
32 | private const LAZY_OBJECT_PROPERTY_SCOPES = []; | ||
33 | |||
34 | public function __construct($options = null) | ||
35 | { | ||
36 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->__construct(...\func_get_args()); | ||
37 | } | ||
38 | |||
39 | public function _compress($value): string | ||
40 | { | ||
41 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->_compress(...\func_get_args()); | ||
42 | } | ||
43 | |||
44 | public function _uncompress($value): string | ||
45 | { | ||
46 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->_uncompress(...\func_get_args()); | ||
47 | } | ||
48 | |||
49 | public function _prefix($key): string | ||
50 | { | ||
51 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->_prefix(...\func_get_args()); | ||
52 | } | ||
53 | |||
54 | public function _serialize($value): string | ||
55 | { | ||
56 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->_serialize(...\func_get_args()); | ||
57 | } | ||
58 | |||
59 | public function _unserialize($value): mixed | ||
60 | { | ||
61 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->_unserialize(...\func_get_args()); | ||
62 | } | ||
63 | |||
64 | public function _pack($value): string | ||
65 | { | ||
66 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->_pack(...\func_get_args()); | ||
67 | } | ||
68 | |||
69 | public function _unpack($value): mixed | ||
70 | { | ||
71 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->_unpack(...\func_get_args()); | ||
72 | } | ||
73 | |||
74 | public function acl($subcmd, ...$args): mixed | ||
75 | { | ||
76 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->acl(...\func_get_args()); | ||
77 | } | ||
78 | |||
79 | public function append($key, $value): \Redis|false|int | ||
80 | { | ||
81 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->append(...\func_get_args()); | ||
82 | } | ||
83 | |||
84 | public function auth(#[\SensitiveParameter] $credentials): \Redis|bool | ||
85 | { | ||
86 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->auth(...\func_get_args()); | ||
87 | } | ||
88 | |||
89 | public function bgSave(): \Redis|bool | ||
90 | { | ||
91 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->bgSave(...\func_get_args()); | ||
92 | } | ||
93 | |||
94 | public function bgrewriteaof(): \Redis|bool | ||
95 | { | ||
96 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->bgrewriteaof(...\func_get_args()); | ||
97 | } | ||
98 | |||
99 | public function bitcount($key, $start = 0, $end = -1, $bybit = false): \Redis|false|int | ||
100 | { | ||
101 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->bitcount(...\func_get_args()); | ||
102 | } | ||
103 | |||
104 | public function bitop($operation, $deskey, $srckey, ...$other_keys): \Redis|false|int | ||
105 | { | ||
106 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->bitop(...\func_get_args()); | ||
107 | } | ||
108 | |||
109 | public function bitpos($key, $bit, $start = 0, $end = -1, $bybit = false): \Redis|false|int | ||
110 | { | ||
111 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->bitpos(...\func_get_args()); | ||
112 | } | ||
113 | |||
114 | public function blPop($key_or_keys, $timeout_or_key, ...$extra_args): \Redis|array|false|null | ||
115 | { | ||
116 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->blPop(...\func_get_args()); | ||
117 | } | ||
118 | |||
119 | public function brPop($key_or_keys, $timeout_or_key, ...$extra_args): \Redis|array|false|null | ||
120 | { | ||
121 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->brPop(...\func_get_args()); | ||
122 | } | ||
123 | |||
124 | public function brpoplpush($src, $dst, $timeout): \Redis|false|string | ||
125 | { | ||
126 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->brpoplpush(...\func_get_args()); | ||
127 | } | ||
128 | |||
129 | public function bzPopMax($key, $timeout_or_key, ...$extra_args): \Redis|array|false | ||
130 | { | ||
131 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->bzPopMax(...\func_get_args()); | ||
132 | } | ||
133 | |||
134 | public function bzPopMin($key, $timeout_or_key, ...$extra_args): \Redis|array|false | ||
135 | { | ||
136 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->bzPopMin(...\func_get_args()); | ||
137 | } | ||
138 | |||
139 | public function bzmpop($timeout, $keys, $from, $count = 1): \Redis|array|false|null | ||
140 | { | ||
141 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->bzmpop(...\func_get_args()); | ||
142 | } | ||
143 | |||
144 | public function zmpop($keys, $from, $count = 1): \Redis|array|false|null | ||
145 | { | ||
146 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zmpop(...\func_get_args()); | ||
147 | } | ||
148 | |||
149 | public function blmpop($timeout, $keys, $from, $count = 1): \Redis|array|false|null | ||
150 | { | ||
151 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->blmpop(...\func_get_args()); | ||
152 | } | ||
153 | |||
154 | public function lmpop($keys, $from, $count = 1): \Redis|array|false|null | ||
155 | { | ||
156 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lmpop(...\func_get_args()); | ||
157 | } | ||
158 | |||
159 | public function clearLastError(): bool | ||
160 | { | ||
161 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->clearLastError(...\func_get_args()); | ||
162 | } | ||
163 | |||
164 | public function client($opt, ...$args): mixed | ||
165 | { | ||
166 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->client(...\func_get_args()); | ||
167 | } | ||
168 | |||
169 | public function close(): bool | ||
170 | { | ||
171 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->close(...\func_get_args()); | ||
172 | } | ||
173 | |||
174 | public function command($opt = null, ...$args): mixed | ||
175 | { | ||
176 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->command(...\func_get_args()); | ||
177 | } | ||
178 | |||
179 | public function config($operation, $key_or_settings = null, $value = null): mixed | ||
180 | { | ||
181 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->config(...\func_get_args()); | ||
182 | } | ||
183 | |||
184 | public function connect($host, $port = 6379, $timeout = 0, $persistent_id = null, $retry_interval = 0, $read_timeout = 0, $context = null): bool | ||
185 | { | ||
186 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->connect(...\func_get_args()); | ||
187 | } | ||
188 | |||
189 | public function copy($src, $dst, $options = null): \Redis|bool | ||
190 | { | ||
191 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->copy(...\func_get_args()); | ||
192 | } | ||
193 | |||
194 | public function dbSize(): \Redis|false|int | ||
195 | { | ||
196 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->dbSize(...\func_get_args()); | ||
197 | } | ||
198 | |||
199 | public function debug($key): \Redis|string | ||
200 | { | ||
201 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->debug(...\func_get_args()); | ||
202 | } | ||
203 | |||
204 | public function decr($key, $by = 1): \Redis|false|int | ||
205 | { | ||
206 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->decr(...\func_get_args()); | ||
207 | } | ||
208 | |||
209 | public function decrBy($key, $value): \Redis|false|int | ||
210 | { | ||
211 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->decrBy(...\func_get_args()); | ||
212 | } | ||
213 | |||
214 | public function del($key, ...$other_keys): \Redis|false|int | ||
215 | { | ||
216 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->del(...\func_get_args()); | ||
217 | } | ||
218 | |||
219 | public function delete($key, ...$other_keys): \Redis|false|int | ||
220 | { | ||
221 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->delete(...\func_get_args()); | ||
222 | } | ||
223 | |||
224 | public function discard(): \Redis|bool | ||
225 | { | ||
226 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->discard(...\func_get_args()); | ||
227 | } | ||
228 | |||
229 | public function dump($key): \Redis|string | ||
230 | { | ||
231 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->dump(...\func_get_args()); | ||
232 | } | ||
233 | |||
234 | public function echo($str): \Redis|false|string | ||
235 | { | ||
236 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->echo(...\func_get_args()); | ||
237 | } | ||
238 | |||
239 | public function eval($script, $args = [], $num_keys = 0): mixed | ||
240 | { | ||
241 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->eval(...\func_get_args()); | ||
242 | } | ||
243 | |||
244 | public function eval_ro($script_sha, $args = [], $num_keys = 0): mixed | ||
245 | { | ||
246 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->eval_ro(...\func_get_args()); | ||
247 | } | ||
248 | |||
249 | public function evalsha($sha1, $args = [], $num_keys = 0): mixed | ||
250 | { | ||
251 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->evalsha(...\func_get_args()); | ||
252 | } | ||
253 | |||
254 | public function evalsha_ro($sha1, $args = [], $num_keys = 0): mixed | ||
255 | { | ||
256 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->evalsha_ro(...\func_get_args()); | ||
257 | } | ||
258 | |||
259 | public function exec(): \Redis|array|false | ||
260 | { | ||
261 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->exec(...\func_get_args()); | ||
262 | } | ||
263 | |||
264 | public function exists($key, ...$other_keys): \Redis|bool|int | ||
265 | { | ||
266 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->exists(...\func_get_args()); | ||
267 | } | ||
268 | |||
269 | public function expire($key, $timeout, $mode = null): \Redis|bool | ||
270 | { | ||
271 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->expire(...\func_get_args()); | ||
272 | } | ||
273 | |||
274 | public function expireAt($key, $timestamp, $mode = null): \Redis|bool | ||
275 | { | ||
276 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->expireAt(...\func_get_args()); | ||
277 | } | ||
278 | |||
279 | public function failover($to = null, $abort = false, $timeout = 0): \Redis|bool | ||
280 | { | ||
281 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->failover(...\func_get_args()); | ||
282 | } | ||
283 | |||
284 | public function expiretime($key): \Redis|false|int | ||
285 | { | ||
286 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->expiretime(...\func_get_args()); | ||
287 | } | ||
288 | |||
289 | public function pexpiretime($key): \Redis|false|int | ||
290 | { | ||
291 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->pexpiretime(...\func_get_args()); | ||
292 | } | ||
293 | |||
294 | public function fcall($fn, $keys = [], $args = []): mixed | ||
295 | { | ||
296 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->fcall(...\func_get_args()); | ||
297 | } | ||
298 | |||
299 | public function fcall_ro($fn, $keys = [], $args = []): mixed | ||
300 | { | ||
301 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->fcall_ro(...\func_get_args()); | ||
302 | } | ||
303 | |||
304 | public function flushAll($sync = null): \Redis|bool | ||
305 | { | ||
306 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->flushAll(...\func_get_args()); | ||
307 | } | ||
308 | |||
309 | public function flushDB($sync = null): \Redis|bool | ||
310 | { | ||
311 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->flushDB(...\func_get_args()); | ||
312 | } | ||
313 | |||
314 | public function function($operation, ...$args): \Redis|array|bool|string | ||
315 | { | ||
316 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->function(...\func_get_args()); | ||
317 | } | ||
318 | |||
319 | public function geoadd($key, $lng, $lat, $member, ...$other_triples_and_options): \Redis|false|int | ||
320 | { | ||
321 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->geoadd(...\func_get_args()); | ||
322 | } | ||
323 | |||
324 | public function geodist($key, $src, $dst, $unit = null): \Redis|false|float | ||
325 | { | ||
326 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->geodist(...\func_get_args()); | ||
327 | } | ||
328 | |||
329 | public function geohash($key, $member, ...$other_members): \Redis|array|false | ||
330 | { | ||
331 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->geohash(...\func_get_args()); | ||
332 | } | ||
333 | |||
334 | public function geopos($key, $member, ...$other_members): \Redis|array|false | ||
335 | { | ||
336 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->geopos(...\func_get_args()); | ||
337 | } | ||
338 | |||
339 | public function georadius($key, $lng, $lat, $radius, $unit, $options = []): mixed | ||
340 | { | ||
341 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->georadius(...\func_get_args()); | ||
342 | } | ||
343 | |||
344 | public function georadius_ro($key, $lng, $lat, $radius, $unit, $options = []): mixed | ||
345 | { | ||
346 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->georadius_ro(...\func_get_args()); | ||
347 | } | ||
348 | |||
349 | public function georadiusbymember($key, $member, $radius, $unit, $options = []): mixed | ||
350 | { | ||
351 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->georadiusbymember(...\func_get_args()); | ||
352 | } | ||
353 | |||
354 | public function georadiusbymember_ro($key, $member, $radius, $unit, $options = []): mixed | ||
355 | { | ||
356 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->georadiusbymember_ro(...\func_get_args()); | ||
357 | } | ||
358 | |||
359 | public function geosearch($key, $position, $shape, $unit, $options = []): array | ||
360 | { | ||
361 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->geosearch(...\func_get_args()); | ||
362 | } | ||
363 | |||
364 | public function geosearchstore($dst, $src, $position, $shape, $unit, $options = []): \Redis|array|false|int | ||
365 | { | ||
366 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->geosearchstore(...\func_get_args()); | ||
367 | } | ||
368 | |||
369 | public function get($key): mixed | ||
370 | { | ||
371 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->get(...\func_get_args()); | ||
372 | } | ||
373 | |||
374 | public function getAuth(): mixed | ||
375 | { | ||
376 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getAuth(...\func_get_args()); | ||
377 | } | ||
378 | |||
379 | public function getBit($key, $idx): \Redis|false|int | ||
380 | { | ||
381 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getBit(...\func_get_args()); | ||
382 | } | ||
383 | |||
384 | public function getEx($key, $options = []): \Redis|bool|string | ||
385 | { | ||
386 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getEx(...\func_get_args()); | ||
387 | } | ||
388 | |||
389 | public function getDBNum(): int | ||
390 | { | ||
391 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getDBNum(...\func_get_args()); | ||
392 | } | ||
393 | |||
394 | public function getDel($key): \Redis|bool|string | ||
395 | { | ||
396 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getDel(...\func_get_args()); | ||
397 | } | ||
398 | |||
399 | public function getHost(): string | ||
400 | { | ||
401 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getHost(...\func_get_args()); | ||
402 | } | ||
403 | |||
404 | public function getLastError(): ?string | ||
405 | { | ||
406 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getLastError(...\func_get_args()); | ||
407 | } | ||
408 | |||
409 | public function getMode(): int | ||
410 | { | ||
411 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getMode(...\func_get_args()); | ||
412 | } | ||
413 | |||
414 | public function getOption($option): mixed | ||
415 | { | ||
416 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getOption(...\func_get_args()); | ||
417 | } | ||
418 | |||
419 | public function getPersistentID(): ?string | ||
420 | { | ||
421 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getPersistentID(...\func_get_args()); | ||
422 | } | ||
423 | |||
424 | public function getPort(): int | ||
425 | { | ||
426 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getPort(...\func_get_args()); | ||
427 | } | ||
428 | |||
429 | public function getRange($key, $start, $end): \Redis|false|string | ||
430 | { | ||
431 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getRange(...\func_get_args()); | ||
432 | } | ||
433 | |||
434 | public function lcs($key1, $key2, $options = null): \Redis|array|false|int|string | ||
435 | { | ||
436 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lcs(...\func_get_args()); | ||
437 | } | ||
438 | |||
439 | public function getReadTimeout(): float | ||
440 | { | ||
441 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getReadTimeout(...\func_get_args()); | ||
442 | } | ||
443 | |||
444 | public function getset($key, $value): \Redis|false|string | ||
445 | { | ||
446 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getset(...\func_get_args()); | ||
447 | } | ||
448 | |||
449 | public function getTimeout(): false|float | ||
450 | { | ||
451 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getTimeout(...\func_get_args()); | ||
452 | } | ||
453 | |||
454 | public function getTransferredBytes(): array | ||
455 | { | ||
456 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->getTransferredBytes(...\func_get_args()); | ||
457 | } | ||
458 | |||
459 | public function clearTransferredBytes(): void | ||
460 | { | ||
461 | ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->clearTransferredBytes(...\func_get_args()); | ||
462 | } | ||
463 | |||
464 | public function hDel($key, $field, ...$other_fields): \Redis|false|int | ||
465 | { | ||
466 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hDel(...\func_get_args()); | ||
467 | } | ||
468 | |||
469 | public function hExists($key, $field): \Redis|bool | ||
470 | { | ||
471 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hExists(...\func_get_args()); | ||
472 | } | ||
473 | |||
474 | public function hGet($key, $member): mixed | ||
475 | { | ||
476 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hGet(...\func_get_args()); | ||
477 | } | ||
478 | |||
479 | public function hGetAll($key): \Redis|array|false | ||
480 | { | ||
481 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hGetAll(...\func_get_args()); | ||
482 | } | ||
483 | |||
484 | public function hIncrBy($key, $field, $value): \Redis|false|int | ||
485 | { | ||
486 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hIncrBy(...\func_get_args()); | ||
487 | } | ||
488 | |||
489 | public function hIncrByFloat($key, $field, $value): \Redis|false|float | ||
490 | { | ||
491 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hIncrByFloat(...\func_get_args()); | ||
492 | } | ||
493 | |||
494 | public function hKeys($key): \Redis|array|false | ||
495 | { | ||
496 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hKeys(...\func_get_args()); | ||
497 | } | ||
498 | |||
499 | public function hLen($key): \Redis|false|int | ||
500 | { | ||
501 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hLen(...\func_get_args()); | ||
502 | } | ||
503 | |||
504 | public function hMget($key, $fields): \Redis|array|false | ||
505 | { | ||
506 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hMget(...\func_get_args()); | ||
507 | } | ||
508 | |||
509 | public function hMset($key, $fieldvals): \Redis|bool | ||
510 | { | ||
511 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hMset(...\func_get_args()); | ||
512 | } | ||
513 | |||
514 | public function hRandField($key, $options = null): \Redis|array|string | ||
515 | { | ||
516 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hRandField(...\func_get_args()); | ||
517 | } | ||
518 | |||
519 | public function hSet($key, $member, $value): \Redis|false|int | ||
520 | { | ||
521 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hSet(...\func_get_args()); | ||
522 | } | ||
523 | |||
524 | public function hSetNx($key, $field, $value): \Redis|bool | ||
525 | { | ||
526 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hSetNx(...\func_get_args()); | ||
527 | } | ||
528 | |||
529 | public function hStrLen($key, $field): \Redis|false|int | ||
530 | { | ||
531 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hStrLen(...\func_get_args()); | ||
532 | } | ||
533 | |||
534 | public function hVals($key): \Redis|array|false | ||
535 | { | ||
536 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hVals(...\func_get_args()); | ||
537 | } | ||
538 | |||
539 | public function hscan($key, &$iterator, $pattern = null, $count = 0): \Redis|array|bool | ||
540 | { | ||
541 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->hscan($key, $iterator, ...\array_slice(\func_get_args(), 2)); | ||
542 | } | ||
543 | |||
544 | public function incr($key, $by = 1): \Redis|false|int | ||
545 | { | ||
546 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->incr(...\func_get_args()); | ||
547 | } | ||
548 | |||
549 | public function incrBy($key, $value): \Redis|false|int | ||
550 | { | ||
551 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->incrBy(...\func_get_args()); | ||
552 | } | ||
553 | |||
554 | public function incrByFloat($key, $value): \Redis|false|float | ||
555 | { | ||
556 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->incrByFloat(...\func_get_args()); | ||
557 | } | ||
558 | |||
559 | public function info(...$sections): \Redis|array|false | ||
560 | { | ||
561 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->info(...\func_get_args()); | ||
562 | } | ||
563 | |||
564 | public function isConnected(): bool | ||
565 | { | ||
566 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->isConnected(...\func_get_args()); | ||
567 | } | ||
568 | |||
569 | public function keys($pattern) | ||
570 | { | ||
571 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->keys(...\func_get_args()); | ||
572 | } | ||
573 | |||
574 | public function lInsert($key, $pos, $pivot, $value) | ||
575 | { | ||
576 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lInsert(...\func_get_args()); | ||
577 | } | ||
578 | |||
579 | public function lLen($key): \Redis|false|int | ||
580 | { | ||
581 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lLen(...\func_get_args()); | ||
582 | } | ||
583 | |||
584 | public function lMove($src, $dst, $wherefrom, $whereto): \Redis|false|string | ||
585 | { | ||
586 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lMove(...\func_get_args()); | ||
587 | } | ||
588 | |||
589 | public function blmove($src, $dst, $wherefrom, $whereto, $timeout): \Redis|false|string | ||
590 | { | ||
591 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->blmove(...\func_get_args()); | ||
592 | } | ||
593 | |||
594 | public function lPop($key, $count = 0): \Redis|array|bool|string | ||
595 | { | ||
596 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lPop(...\func_get_args()); | ||
597 | } | ||
598 | |||
599 | public function lPos($key, $value, $options = null): \Redis|array|bool|int|null | ||
600 | { | ||
601 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lPos(...\func_get_args()); | ||
602 | } | ||
603 | |||
604 | public function lPush($key, ...$elements): \Redis|false|int | ||
605 | { | ||
606 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lPush(...\func_get_args()); | ||
607 | } | ||
608 | |||
609 | public function rPush($key, ...$elements): \Redis|false|int | ||
610 | { | ||
611 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->rPush(...\func_get_args()); | ||
612 | } | ||
613 | |||
614 | public function lPushx($key, $value): \Redis|false|int | ||
615 | { | ||
616 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lPushx(...\func_get_args()); | ||
617 | } | ||
618 | |||
619 | public function rPushx($key, $value): \Redis|false|int | ||
620 | { | ||
621 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->rPushx(...\func_get_args()); | ||
622 | } | ||
623 | |||
624 | public function lSet($key, $index, $value): \Redis|bool | ||
625 | { | ||
626 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lSet(...\func_get_args()); | ||
627 | } | ||
628 | |||
629 | public function lastSave(): int | ||
630 | { | ||
631 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lastSave(...\func_get_args()); | ||
632 | } | ||
633 | |||
634 | public function lindex($key, $index): mixed | ||
635 | { | ||
636 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lindex(...\func_get_args()); | ||
637 | } | ||
638 | |||
639 | public function lrange($key, $start, $end): \Redis|array|false | ||
640 | { | ||
641 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lrange(...\func_get_args()); | ||
642 | } | ||
643 | |||
644 | public function lrem($key, $value, $count = 0): \Redis|false|int | ||
645 | { | ||
646 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->lrem(...\func_get_args()); | ||
647 | } | ||
648 | |||
649 | public function ltrim($key, $start, $end): \Redis|bool | ||
650 | { | ||
651 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->ltrim(...\func_get_args()); | ||
652 | } | ||
653 | |||
654 | public function mget($keys): \Redis|array | ||
655 | { | ||
656 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->mget(...\func_get_args()); | ||
657 | } | ||
658 | |||
659 | public function migrate($host, $port, $key, $dstdb, $timeout, $copy = false, $replace = false, #[\SensitiveParameter] $credentials = null): \Redis|bool | ||
660 | { | ||
661 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->migrate(...\func_get_args()); | ||
662 | } | ||
663 | |||
664 | public function move($key, $index): \Redis|bool | ||
665 | { | ||
666 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->move(...\func_get_args()); | ||
667 | } | ||
668 | |||
669 | public function mset($key_values): \Redis|bool | ||
670 | { | ||
671 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->mset(...\func_get_args()); | ||
672 | } | ||
673 | |||
674 | public function msetnx($key_values): \Redis|bool | ||
675 | { | ||
676 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->msetnx(...\func_get_args()); | ||
677 | } | ||
678 | |||
679 | public function multi($value = \Redis::MULTI): \Redis|bool | ||
680 | { | ||
681 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->multi(...\func_get_args()); | ||
682 | } | ||
683 | |||
684 | public function object($subcommand, $key): \Redis|false|int|string | ||
685 | { | ||
686 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->object(...\func_get_args()); | ||
687 | } | ||
688 | |||
689 | public function open($host, $port = 6379, $timeout = 0, $persistent_id = null, $retry_interval = 0, $read_timeout = 0, $context = null): bool | ||
690 | { | ||
691 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->open(...\func_get_args()); | ||
692 | } | ||
693 | |||
694 | public function pconnect($host, $port = 6379, $timeout = 0, $persistent_id = null, $retry_interval = 0, $read_timeout = 0, $context = null): bool | ||
695 | { | ||
696 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->pconnect(...\func_get_args()); | ||
697 | } | ||
698 | |||
699 | public function persist($key): \Redis|bool | ||
700 | { | ||
701 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->persist(...\func_get_args()); | ||
702 | } | ||
703 | |||
704 | public function pexpire($key, $timeout, $mode = null): bool | ||
705 | { | ||
706 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->pexpire(...\func_get_args()); | ||
707 | } | ||
708 | |||
709 | public function pexpireAt($key, $timestamp, $mode = null): \Redis|bool | ||
710 | { | ||
711 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->pexpireAt(...\func_get_args()); | ||
712 | } | ||
713 | |||
714 | public function pfadd($key, $elements): \Redis|int | ||
715 | { | ||
716 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->pfadd(...\func_get_args()); | ||
717 | } | ||
718 | |||
719 | public function pfcount($key_or_keys): \Redis|false|int | ||
720 | { | ||
721 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->pfcount(...\func_get_args()); | ||
722 | } | ||
723 | |||
724 | public function pfmerge($dst, $srckeys): \Redis|bool | ||
725 | { | ||
726 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->pfmerge(...\func_get_args()); | ||
727 | } | ||
728 | |||
729 | public function ping($message = null): \Redis|bool|string | ||
730 | { | ||
731 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->ping(...\func_get_args()); | ||
732 | } | ||
733 | |||
734 | public function pipeline(): \Redis|bool | ||
735 | { | ||
736 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->pipeline(...\func_get_args()); | ||
737 | } | ||
738 | |||
739 | public function popen($host, $port = 6379, $timeout = 0, $persistent_id = null, $retry_interval = 0, $read_timeout = 0, $context = null): bool | ||
740 | { | ||
741 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->popen(...\func_get_args()); | ||
742 | } | ||
743 | |||
744 | public function psetex($key, $expire, $value): \Redis|bool | ||
745 | { | ||
746 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->psetex(...\func_get_args()); | ||
747 | } | ||
748 | |||
749 | public function psubscribe($patterns, $cb): bool | ||
750 | { | ||
751 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->psubscribe(...\func_get_args()); | ||
752 | } | ||
753 | |||
754 | public function pttl($key): \Redis|false|int | ||
755 | { | ||
756 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->pttl(...\func_get_args()); | ||
757 | } | ||
758 | |||
759 | public function publish($channel, $message): \Redis|false|int | ||
760 | { | ||
761 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->publish(...\func_get_args()); | ||
762 | } | ||
763 | |||
764 | public function pubsub($command, $arg = null): mixed | ||
765 | { | ||
766 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->pubsub(...\func_get_args()); | ||
767 | } | ||
768 | |||
769 | public function punsubscribe($patterns): \Redis|array|bool | ||
770 | { | ||
771 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->punsubscribe(...\func_get_args()); | ||
772 | } | ||
773 | |||
774 | public function rPop($key, $count = 0): \Redis|array|bool|string | ||
775 | { | ||
776 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->rPop(...\func_get_args()); | ||
777 | } | ||
778 | |||
779 | public function randomKey(): \Redis|false|string | ||
780 | { | ||
781 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->randomKey(...\func_get_args()); | ||
782 | } | ||
783 | |||
784 | public function rawcommand($command, ...$args): mixed | ||
785 | { | ||
786 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->rawcommand(...\func_get_args()); | ||
787 | } | ||
788 | |||
789 | public function rename($old_name, $new_name): \Redis|bool | ||
790 | { | ||
791 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->rename(...\func_get_args()); | ||
792 | } | ||
793 | |||
794 | public function renameNx($key_src, $key_dst): \Redis|bool | ||
795 | { | ||
796 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->renameNx(...\func_get_args()); | ||
797 | } | ||
798 | |||
799 | public function restore($key, $ttl, $value, $options = null): \Redis|bool | ||
800 | { | ||
801 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->restore(...\func_get_args()); | ||
802 | } | ||
803 | |||
804 | public function role(): mixed | ||
805 | { | ||
806 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->role(...\func_get_args()); | ||
807 | } | ||
808 | |||
809 | public function rpoplpush($srckey, $dstkey): \Redis|false|string | ||
810 | { | ||
811 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->rpoplpush(...\func_get_args()); | ||
812 | } | ||
813 | |||
814 | public function sAdd($key, $value, ...$other_values): \Redis|false|int | ||
815 | { | ||
816 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sAdd(...\func_get_args()); | ||
817 | } | ||
818 | |||
819 | public function sAddArray($key, $values): int | ||
820 | { | ||
821 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sAddArray(...\func_get_args()); | ||
822 | } | ||
823 | |||
824 | public function sDiff($key, ...$other_keys): \Redis|array|false | ||
825 | { | ||
826 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sDiff(...\func_get_args()); | ||
827 | } | ||
828 | |||
829 | public function sDiffStore($dst, $key, ...$other_keys): \Redis|false|int | ||
830 | { | ||
831 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sDiffStore(...\func_get_args()); | ||
832 | } | ||
833 | |||
834 | public function sInter($key, ...$other_keys): \Redis|array|false | ||
835 | { | ||
836 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sInter(...\func_get_args()); | ||
837 | } | ||
838 | |||
839 | public function sintercard($keys, $limit = -1): \Redis|false|int | ||
840 | { | ||
841 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sintercard(...\func_get_args()); | ||
842 | } | ||
843 | |||
844 | public function sInterStore($key, ...$other_keys): \Redis|false|int | ||
845 | { | ||
846 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sInterStore(...\func_get_args()); | ||
847 | } | ||
848 | |||
849 | public function sMembers($key): \Redis|array|false | ||
850 | { | ||
851 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sMembers(...\func_get_args()); | ||
852 | } | ||
853 | |||
854 | public function sMisMember($key, $member, ...$other_members): \Redis|array|false | ||
855 | { | ||
856 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sMisMember(...\func_get_args()); | ||
857 | } | ||
858 | |||
859 | public function sMove($src, $dst, $value): \Redis|bool | ||
860 | { | ||
861 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sMove(...\func_get_args()); | ||
862 | } | ||
863 | |||
864 | public function sPop($key, $count = 0): \Redis|array|false|string | ||
865 | { | ||
866 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sPop(...\func_get_args()); | ||
867 | } | ||
868 | |||
869 | public function sRandMember($key, $count = 0): \Redis|array|false|string | ||
870 | { | ||
871 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sRandMember(...\func_get_args()); | ||
872 | } | ||
873 | |||
874 | public function sUnion($key, ...$other_keys): \Redis|array|false | ||
875 | { | ||
876 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sUnion(...\func_get_args()); | ||
877 | } | ||
878 | |||
879 | public function sUnionStore($dst, $key, ...$other_keys): \Redis|false|int | ||
880 | { | ||
881 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sUnionStore(...\func_get_args()); | ||
882 | } | ||
883 | |||
884 | public function save(): \Redis|bool | ||
885 | { | ||
886 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->save(...\func_get_args()); | ||
887 | } | ||
888 | |||
889 | public function scan(&$iterator, $pattern = null, $count = 0, $type = null): array|false | ||
890 | { | ||
891 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->scan($iterator, ...\array_slice(\func_get_args(), 1)); | ||
892 | } | ||
893 | |||
894 | public function scard($key): \Redis|false|int | ||
895 | { | ||
896 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->scard(...\func_get_args()); | ||
897 | } | ||
898 | |||
899 | public function script($command, ...$args): mixed | ||
900 | { | ||
901 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->script(...\func_get_args()); | ||
902 | } | ||
903 | |||
904 | public function select($db): \Redis|bool | ||
905 | { | ||
906 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->select(...\func_get_args()); | ||
907 | } | ||
908 | |||
909 | public function set($key, $value, $options = null): \Redis|bool|string | ||
910 | { | ||
911 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->set(...\func_get_args()); | ||
912 | } | ||
913 | |||
914 | public function setBit($key, $idx, $value): \Redis|false|int | ||
915 | { | ||
916 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->setBit(...\func_get_args()); | ||
917 | } | ||
918 | |||
919 | public function setRange($key, $index, $value): \Redis|false|int | ||
920 | { | ||
921 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->setRange(...\func_get_args()); | ||
922 | } | ||
923 | |||
924 | public function setOption($option, $value): bool | ||
925 | { | ||
926 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->setOption(...\func_get_args()); | ||
927 | } | ||
928 | |||
929 | public function setex($key, $expire, $value) | ||
930 | { | ||
931 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->setex(...\func_get_args()); | ||
932 | } | ||
933 | |||
934 | public function setnx($key, $value): \Redis|bool | ||
935 | { | ||
936 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->setnx(...\func_get_args()); | ||
937 | } | ||
938 | |||
939 | public function sismember($key, $value): \Redis|bool | ||
940 | { | ||
941 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sismember(...\func_get_args()); | ||
942 | } | ||
943 | |||
944 | public function slaveof($host = null, $port = 6379): \Redis|bool | ||
945 | { | ||
946 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->slaveof(...\func_get_args()); | ||
947 | } | ||
948 | |||
949 | public function replicaof($host = null, $port = 6379): \Redis|bool | ||
950 | { | ||
951 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->replicaof(...\func_get_args()); | ||
952 | } | ||
953 | |||
954 | public function touch($key_or_array, ...$more_keys): \Redis|false|int | ||
955 | { | ||
956 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->touch(...\func_get_args()); | ||
957 | } | ||
958 | |||
959 | public function slowlog($operation, $length = 0): mixed | ||
960 | { | ||
961 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->slowlog(...\func_get_args()); | ||
962 | } | ||
963 | |||
964 | public function sort($key, $options = null): mixed | ||
965 | { | ||
966 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sort(...\func_get_args()); | ||
967 | } | ||
968 | |||
969 | public function sort_ro($key, $options = null): mixed | ||
970 | { | ||
971 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sort_ro(...\func_get_args()); | ||
972 | } | ||
973 | |||
974 | public function sortAsc($key, $pattern = null, $get = null, $offset = -1, $count = -1, $store = null): array | ||
975 | { | ||
976 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sortAsc(...\func_get_args()); | ||
977 | } | ||
978 | |||
979 | public function sortAscAlpha($key, $pattern = null, $get = null, $offset = -1, $count = -1, $store = null): array | ||
980 | { | ||
981 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sortAscAlpha(...\func_get_args()); | ||
982 | } | ||
983 | |||
984 | public function sortDesc($key, $pattern = null, $get = null, $offset = -1, $count = -1, $store = null): array | ||
985 | { | ||
986 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sortDesc(...\func_get_args()); | ||
987 | } | ||
988 | |||
989 | public function sortDescAlpha($key, $pattern = null, $get = null, $offset = -1, $count = -1, $store = null): array | ||
990 | { | ||
991 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sortDescAlpha(...\func_get_args()); | ||
992 | } | ||
993 | |||
994 | public function srem($key, $value, ...$other_values): \Redis|false|int | ||
995 | { | ||
996 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->srem(...\func_get_args()); | ||
997 | } | ||
998 | |||
999 | public function sscan($key, &$iterator, $pattern = null, $count = 0): array|false | ||
1000 | { | ||
1001 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sscan($key, $iterator, ...\array_slice(\func_get_args(), 2)); | ||
1002 | } | ||
1003 | |||
1004 | public function ssubscribe($channels, $cb): bool | ||
1005 | { | ||
1006 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->ssubscribe(...\func_get_args()); | ||
1007 | } | ||
1008 | |||
1009 | public function strlen($key): \Redis|false|int | ||
1010 | { | ||
1011 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->strlen(...\func_get_args()); | ||
1012 | } | ||
1013 | |||
1014 | public function subscribe($channels, $cb): bool | ||
1015 | { | ||
1016 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->subscribe(...\func_get_args()); | ||
1017 | } | ||
1018 | |||
1019 | public function sunsubscribe($channels): \Redis|array|bool | ||
1020 | { | ||
1021 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sunsubscribe(...\func_get_args()); | ||
1022 | } | ||
1023 | |||
1024 | public function swapdb($src, $dst): \Redis|bool | ||
1025 | { | ||
1026 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->swapdb(...\func_get_args()); | ||
1027 | } | ||
1028 | |||
1029 | public function time(): \Redis|array | ||
1030 | { | ||
1031 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->time(...\func_get_args()); | ||
1032 | } | ||
1033 | |||
1034 | public function ttl($key): \Redis|false|int | ||
1035 | { | ||
1036 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->ttl(...\func_get_args()); | ||
1037 | } | ||
1038 | |||
1039 | public function type($key): \Redis|false|int | ||
1040 | { | ||
1041 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->type(...\func_get_args()); | ||
1042 | } | ||
1043 | |||
1044 | public function unlink($key, ...$other_keys): \Redis|false|int | ||
1045 | { | ||
1046 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->unlink(...\func_get_args()); | ||
1047 | } | ||
1048 | |||
1049 | public function unsubscribe($channels): \Redis|array|bool | ||
1050 | { | ||
1051 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->unsubscribe(...\func_get_args()); | ||
1052 | } | ||
1053 | |||
1054 | public function unwatch(): \Redis|bool | ||
1055 | { | ||
1056 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->unwatch(...\func_get_args()); | ||
1057 | } | ||
1058 | |||
1059 | public function watch($key, ...$other_keys): \Redis|bool | ||
1060 | { | ||
1061 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->watch(...\func_get_args()); | ||
1062 | } | ||
1063 | |||
1064 | public function wait($numreplicas, $timeout): false|int | ||
1065 | { | ||
1066 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->wait(...\func_get_args()); | ||
1067 | } | ||
1068 | |||
1069 | public function xack($key, $group, $ids): false|int | ||
1070 | { | ||
1071 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xack(...\func_get_args()); | ||
1072 | } | ||
1073 | |||
1074 | public function xadd($key, $id, $values, $maxlen = 0, $approx = false, $nomkstream = false): \Redis|false|string | ||
1075 | { | ||
1076 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xadd(...\func_get_args()); | ||
1077 | } | ||
1078 | |||
1079 | public function xautoclaim($key, $group, $consumer, $min_idle, $start, $count = -1, $justid = false): \Redis|array|bool | ||
1080 | { | ||
1081 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xautoclaim(...\func_get_args()); | ||
1082 | } | ||
1083 | |||
1084 | public function xclaim($key, $group, $consumer, $min_idle, $ids, $options): \Redis|array|bool | ||
1085 | { | ||
1086 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xclaim(...\func_get_args()); | ||
1087 | } | ||
1088 | |||
1089 | public function xdel($key, $ids): \Redis|false|int | ||
1090 | { | ||
1091 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xdel(...\func_get_args()); | ||
1092 | } | ||
1093 | |||
1094 | public function xgroup($operation, $key = null, $group = null, $id_or_consumer = null, $mkstream = false, $entries_read = -2): mixed | ||
1095 | { | ||
1096 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xgroup(...\func_get_args()); | ||
1097 | } | ||
1098 | |||
1099 | public function xinfo($operation, $arg1 = null, $arg2 = null, $count = -1): mixed | ||
1100 | { | ||
1101 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xinfo(...\func_get_args()); | ||
1102 | } | ||
1103 | |||
1104 | public function xlen($key): \Redis|false|int | ||
1105 | { | ||
1106 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xlen(...\func_get_args()); | ||
1107 | } | ||
1108 | |||
1109 | public function xpending($key, $group, $start = null, $end = null, $count = -1, $consumer = null): \Redis|array|false | ||
1110 | { | ||
1111 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xpending(...\func_get_args()); | ||
1112 | } | ||
1113 | |||
1114 | public function xrange($key, $start, $end, $count = -1): \Redis|array|bool | ||
1115 | { | ||
1116 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xrange(...\func_get_args()); | ||
1117 | } | ||
1118 | |||
1119 | public function xread($streams, $count = -1, $block = -1): \Redis|array|bool | ||
1120 | { | ||
1121 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xread(...\func_get_args()); | ||
1122 | } | ||
1123 | |||
1124 | public function xreadgroup($group, $consumer, $streams, $count = 1, $block = 1): \Redis|array|bool | ||
1125 | { | ||
1126 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xreadgroup(...\func_get_args()); | ||
1127 | } | ||
1128 | |||
1129 | public function xrevrange($key, $end, $start, $count = -1): \Redis|array|bool | ||
1130 | { | ||
1131 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xrevrange(...\func_get_args()); | ||
1132 | } | ||
1133 | |||
1134 | public function xtrim($key, $threshold, $approx = false, $minid = false, $limit = -1): \Redis|false|int | ||
1135 | { | ||
1136 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->xtrim(...\func_get_args()); | ||
1137 | } | ||
1138 | |||
1139 | public function zAdd($key, $score_or_options, ...$more_scores_and_mems): \Redis|false|float|int | ||
1140 | { | ||
1141 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zAdd(...\func_get_args()); | ||
1142 | } | ||
1143 | |||
1144 | public function zCard($key): \Redis|false|int | ||
1145 | { | ||
1146 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zCard(...\func_get_args()); | ||
1147 | } | ||
1148 | |||
1149 | public function zCount($key, $start, $end): \Redis|false|int | ||
1150 | { | ||
1151 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zCount(...\func_get_args()); | ||
1152 | } | ||
1153 | |||
1154 | public function zIncrBy($key, $value, $member): \Redis|false|float | ||
1155 | { | ||
1156 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zIncrBy(...\func_get_args()); | ||
1157 | } | ||
1158 | |||
1159 | public function zLexCount($key, $min, $max): \Redis|false|int | ||
1160 | { | ||
1161 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zLexCount(...\func_get_args()); | ||
1162 | } | ||
1163 | |||
1164 | public function zMscore($key, $member, ...$other_members): \Redis|array|false | ||
1165 | { | ||
1166 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zMscore(...\func_get_args()); | ||
1167 | } | ||
1168 | |||
1169 | public function zPopMax($key, $count = null): \Redis|array|false | ||
1170 | { | ||
1171 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zPopMax(...\func_get_args()); | ||
1172 | } | ||
1173 | |||
1174 | public function zPopMin($key, $count = null): \Redis|array|false | ||
1175 | { | ||
1176 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zPopMin(...\func_get_args()); | ||
1177 | } | ||
1178 | |||
1179 | public function zRange($key, $start, $end, $options = null): \Redis|array|false | ||
1180 | { | ||
1181 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zRange(...\func_get_args()); | ||
1182 | } | ||
1183 | |||
1184 | public function zRangeByLex($key, $min, $max, $offset = -1, $count = -1): \Redis|array|false | ||
1185 | { | ||
1186 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zRangeByLex(...\func_get_args()); | ||
1187 | } | ||
1188 | |||
1189 | public function zRangeByScore($key, $start, $end, $options = []): \Redis|array|false | ||
1190 | { | ||
1191 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zRangeByScore(...\func_get_args()); | ||
1192 | } | ||
1193 | |||
1194 | public function zrangestore($dstkey, $srckey, $start, $end, $options = null): \Redis|false|int | ||
1195 | { | ||
1196 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zrangestore(...\func_get_args()); | ||
1197 | } | ||
1198 | |||
1199 | public function zRandMember($key, $options = null): \Redis|array|string | ||
1200 | { | ||
1201 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zRandMember(...\func_get_args()); | ||
1202 | } | ||
1203 | |||
1204 | public function zRank($key, $member): \Redis|false|int | ||
1205 | { | ||
1206 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zRank(...\func_get_args()); | ||
1207 | } | ||
1208 | |||
1209 | public function zRem($key, $member, ...$other_members): \Redis|false|int | ||
1210 | { | ||
1211 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zRem(...\func_get_args()); | ||
1212 | } | ||
1213 | |||
1214 | public function zRemRangeByLex($key, $min, $max): \Redis|false|int | ||
1215 | { | ||
1216 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zRemRangeByLex(...\func_get_args()); | ||
1217 | } | ||
1218 | |||
1219 | public function zRemRangeByRank($key, $start, $end): \Redis|false|int | ||
1220 | { | ||
1221 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zRemRangeByRank(...\func_get_args()); | ||
1222 | } | ||
1223 | |||
1224 | public function zRemRangeByScore($key, $start, $end): \Redis|false|int | ||
1225 | { | ||
1226 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zRemRangeByScore(...\func_get_args()); | ||
1227 | } | ||
1228 | |||
1229 | public function zRevRange($key, $start, $end, $scores = null): \Redis|array|false | ||
1230 | { | ||
1231 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zRevRange(...\func_get_args()); | ||
1232 | } | ||
1233 | |||
1234 | public function zRevRangeByLex($key, $max, $min, $offset = -1, $count = -1): \Redis|array|false | ||
1235 | { | ||
1236 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zRevRangeByLex(...\func_get_args()); | ||
1237 | } | ||
1238 | |||
1239 | public function zRevRangeByScore($key, $max, $min, $options = []): \Redis|array|false | ||
1240 | { | ||
1241 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zRevRangeByScore(...\func_get_args()); | ||
1242 | } | ||
1243 | |||
1244 | public function zRevRank($key, $member): \Redis|false|int | ||
1245 | { | ||
1246 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zRevRank(...\func_get_args()); | ||
1247 | } | ||
1248 | |||
1249 | public function zScore($key, $member): \Redis|false|float | ||
1250 | { | ||
1251 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zScore(...\func_get_args()); | ||
1252 | } | ||
1253 | |||
1254 | public function zdiff($keys, $options = null): \Redis|array|false | ||
1255 | { | ||
1256 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zdiff(...\func_get_args()); | ||
1257 | } | ||
1258 | |||
1259 | public function zdiffstore($dst, $keys): \Redis|false|int | ||
1260 | { | ||
1261 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zdiffstore(...\func_get_args()); | ||
1262 | } | ||
1263 | |||
1264 | public function zinter($keys, $weights = null, $options = null): \Redis|array|false | ||
1265 | { | ||
1266 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zinter(...\func_get_args()); | ||
1267 | } | ||
1268 | |||
1269 | public function zintercard($keys, $limit = -1): \Redis|false|int | ||
1270 | { | ||
1271 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zintercard(...\func_get_args()); | ||
1272 | } | ||
1273 | |||
1274 | public function zinterstore($dst, $keys, $weights = null, $aggregate = null): \Redis|false|int | ||
1275 | { | ||
1276 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zinterstore(...\func_get_args()); | ||
1277 | } | ||
1278 | |||
1279 | public function zscan($key, &$iterator, $pattern = null, $count = 0): \Redis|array|false | ||
1280 | { | ||
1281 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zscan($key, $iterator, ...\array_slice(\func_get_args(), 2)); | ||
1282 | } | ||
1283 | |||
1284 | public function zunion($keys, $weights = null, $options = null): \Redis|array|false | ||
1285 | { | ||
1286 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zunion(...\func_get_args()); | ||
1287 | } | ||
1288 | |||
1289 | public function zunionstore($dst, $keys, $weights = null, $aggregate = null): \Redis|false|int | ||
1290 | { | ||
1291 | return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->zunionstore(...\func_get_args()); | ||
1292 | } | ||
1293 | } | ||