RedisCluster6Proxy.php 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Cache\Traits;
  11. use Symfony\Component\VarExporter\LazyObjectInterface;
  12. use Symfony\Contracts\Service\ResetInterface;
  13. // Help opcache.preload discover always-needed symbols
  14. class_exists(\Symfony\Component\VarExporter\Internal\Hydrator::class);
  15. class_exists(\Symfony\Component\VarExporter\Internal\LazyObjectRegistry::class);
  16. class_exists(\Symfony\Component\VarExporter\Internal\LazyObjectState::class);
  17. /**
  18. * @internal
  19. */
  20. class RedisCluster6Proxy extends \RedisCluster implements ResetInterface, LazyObjectInterface
  21. {
  22. use RedisCluster61ProxyTrait;
  23. use RedisCluster62ProxyTrait;
  24. use RedisCluster63ProxyTrait;
  25. use RedisProxyTrait {
  26. resetLazyObject as reset;
  27. }
  28. public function __construct($name, $seeds = null, $timeout = 0, $read_timeout = 0, $persistent = false, #[\SensitiveParameter] $auth = null, $context = null)
  29. {
  30. $this->initializeLazyObject()->__construct(...\func_get_args());
  31. }
  32. public function _compress($value): string
  33. {
  34. return $this->initializeLazyObject()->_compress(...\func_get_args());
  35. }
  36. public function _uncompress($value): string
  37. {
  38. return $this->initializeLazyObject()->_uncompress(...\func_get_args());
  39. }
  40. public function _serialize($value): bool|string
  41. {
  42. return $this->initializeLazyObject()->_serialize(...\func_get_args());
  43. }
  44. public function _unserialize($value): mixed
  45. {
  46. return $this->initializeLazyObject()->_unserialize(...\func_get_args());
  47. }
  48. public function _pack($value): string
  49. {
  50. return $this->initializeLazyObject()->_pack(...\func_get_args());
  51. }
  52. public function _unpack($value): mixed
  53. {
  54. return $this->initializeLazyObject()->_unpack(...\func_get_args());
  55. }
  56. public function _prefix($key): bool|string
  57. {
  58. return $this->initializeLazyObject()->_prefix(...\func_get_args());
  59. }
  60. public function _masters(): array
  61. {
  62. return $this->initializeLazyObject()->_masters(...\func_get_args());
  63. }
  64. public function _redir(): ?string
  65. {
  66. return $this->initializeLazyObject()->_redir(...\func_get_args());
  67. }
  68. public function acl($key_or_address, $subcmd, ...$args): mixed
  69. {
  70. return $this->initializeLazyObject()->acl(...\func_get_args());
  71. }
  72. public function append($key, $value): \RedisCluster|bool|int
  73. {
  74. return $this->initializeLazyObject()->append(...\func_get_args());
  75. }
  76. public function bgrewriteaof($key_or_address): \RedisCluster|bool
  77. {
  78. return $this->initializeLazyObject()->bgrewriteaof(...\func_get_args());
  79. }
  80. public function bgsave($key_or_address): \RedisCluster|bool
  81. {
  82. return $this->initializeLazyObject()->bgsave(...\func_get_args());
  83. }
  84. public function bitcount($key, $start = 0, $end = -1, $bybit = false): \RedisCluster|bool|int
  85. {
  86. return $this->initializeLazyObject()->bitcount(...\func_get_args());
  87. }
  88. public function bitop($operation, $deskey, $srckey, ...$otherkeys): \RedisCluster|bool|int
  89. {
  90. return $this->initializeLazyObject()->bitop(...\func_get_args());
  91. }
  92. public function bitpos($key, $bit, $start = 0, $end = -1, $bybit = false): \RedisCluster|false|int
  93. {
  94. return $this->initializeLazyObject()->bitpos(...\func_get_args());
  95. }
  96. public function blpop($key, $timeout_or_key, ...$extra_args): \RedisCluster|array|false|null
  97. {
  98. return $this->initializeLazyObject()->blpop(...\func_get_args());
  99. }
  100. public function brpop($key, $timeout_or_key, ...$extra_args): \RedisCluster|array|false|null
  101. {
  102. return $this->initializeLazyObject()->brpop(...\func_get_args());
  103. }
  104. public function brpoplpush($srckey, $deskey, $timeout): mixed
  105. {
  106. return $this->initializeLazyObject()->brpoplpush(...\func_get_args());
  107. }
  108. public function lmove($src, $dst, $wherefrom, $whereto): \Redis|false|string
  109. {
  110. return $this->initializeLazyObject()->lmove(...\func_get_args());
  111. }
  112. public function blmove($src, $dst, $wherefrom, $whereto, $timeout): \Redis|false|string
  113. {
  114. return $this->initializeLazyObject()->blmove(...\func_get_args());
  115. }
  116. public function bzpopmax($key, $timeout_or_key, ...$extra_args): array
  117. {
  118. return $this->initializeLazyObject()->bzpopmax(...\func_get_args());
  119. }
  120. public function bzpopmin($key, $timeout_or_key, ...$extra_args): array
  121. {
  122. return $this->initializeLazyObject()->bzpopmin(...\func_get_args());
  123. }
  124. public function bzmpop($timeout, $keys, $from, $count = 1): \RedisCluster|array|false|null
  125. {
  126. return $this->initializeLazyObject()->bzmpop(...\func_get_args());
  127. }
  128. public function zmpop($keys, $from, $count = 1): \RedisCluster|array|false|null
  129. {
  130. return $this->initializeLazyObject()->zmpop(...\func_get_args());
  131. }
  132. public function blmpop($timeout, $keys, $from, $count = 1): \RedisCluster|array|false|null
  133. {
  134. return $this->initializeLazyObject()->blmpop(...\func_get_args());
  135. }
  136. public function lmpop($keys, $from, $count = 1): \RedisCluster|array|false|null
  137. {
  138. return $this->initializeLazyObject()->lmpop(...\func_get_args());
  139. }
  140. public function clearlasterror(): bool
  141. {
  142. return $this->initializeLazyObject()->clearlasterror(...\func_get_args());
  143. }
  144. public function client($key_or_address, $subcommand, $arg = null): array|bool|string
  145. {
  146. return $this->initializeLazyObject()->client(...\func_get_args());
  147. }
  148. public function close(): bool
  149. {
  150. return $this->initializeLazyObject()->close(...\func_get_args());
  151. }
  152. public function cluster($key_or_address, $command, ...$extra_args): mixed
  153. {
  154. return $this->initializeLazyObject()->cluster(...\func_get_args());
  155. }
  156. public function command(...$extra_args): mixed
  157. {
  158. return $this->initializeLazyObject()->command(...\func_get_args());
  159. }
  160. public function config($key_or_address, $subcommand, ...$extra_args): mixed
  161. {
  162. return $this->initializeLazyObject()->config(...\func_get_args());
  163. }
  164. public function dbsize($key_or_address): \RedisCluster|int
  165. {
  166. return $this->initializeLazyObject()->dbsize(...\func_get_args());
  167. }
  168. public function copy($src, $dst, $options = null): \RedisCluster|bool
  169. {
  170. return $this->initializeLazyObject()->copy(...\func_get_args());
  171. }
  172. public function decr($key, $by = 1): \RedisCluster|false|int
  173. {
  174. return $this->initializeLazyObject()->decr(...\func_get_args());
  175. }
  176. public function decrby($key, $value): \RedisCluster|false|int
  177. {
  178. return $this->initializeLazyObject()->decrby(...\func_get_args());
  179. }
  180. public function decrbyfloat($key, $value): float
  181. {
  182. return $this->initializeLazyObject()->decrbyfloat(...\func_get_args());
  183. }
  184. public function del($key, ...$other_keys): \RedisCluster|false|int
  185. {
  186. return $this->initializeLazyObject()->del(...\func_get_args());
  187. }
  188. public function discard(): bool
  189. {
  190. return $this->initializeLazyObject()->discard(...\func_get_args());
  191. }
  192. public function dump($key): \RedisCluster|false|string
  193. {
  194. return $this->initializeLazyObject()->dump(...\func_get_args());
  195. }
  196. public function echo($key_or_address, $msg): \RedisCluster|false|string
  197. {
  198. return $this->initializeLazyObject()->echo(...\func_get_args());
  199. }
  200. public function eval($script, $args = [], $num_keys = 0): mixed
  201. {
  202. return $this->initializeLazyObject()->eval(...\func_get_args());
  203. }
  204. public function eval_ro($script, $args = [], $num_keys = 0): mixed
  205. {
  206. return $this->initializeLazyObject()->eval_ro(...\func_get_args());
  207. }
  208. public function evalsha($script_sha, $args = [], $num_keys = 0): mixed
  209. {
  210. return $this->initializeLazyObject()->evalsha(...\func_get_args());
  211. }
  212. public function evalsha_ro($script_sha, $args = [], $num_keys = 0): mixed
  213. {
  214. return $this->initializeLazyObject()->evalsha_ro(...\func_get_args());
  215. }
  216. public function exec(): array|false
  217. {
  218. return $this->initializeLazyObject()->exec(...\func_get_args());
  219. }
  220. public function exists($key, ...$other_keys): \RedisCluster|bool|int
  221. {
  222. return $this->initializeLazyObject()->exists(...\func_get_args());
  223. }
  224. public function touch($key, ...$other_keys): \RedisCluster|bool|int
  225. {
  226. return $this->initializeLazyObject()->touch(...\func_get_args());
  227. }
  228. public function expire($key, $timeout, $mode = null): \RedisCluster|bool
  229. {
  230. return $this->initializeLazyObject()->expire(...\func_get_args());
  231. }
  232. public function expireat($key, $timestamp, $mode = null): \RedisCluster|bool
  233. {
  234. return $this->initializeLazyObject()->expireat(...\func_get_args());
  235. }
  236. public function expiretime($key): \RedisCluster|false|int
  237. {
  238. return $this->initializeLazyObject()->expiretime(...\func_get_args());
  239. }
  240. public function pexpiretime($key): \RedisCluster|false|int
  241. {
  242. return $this->initializeLazyObject()->pexpiretime(...\func_get_args());
  243. }
  244. public function flushall($key_or_address, $async = false): \RedisCluster|bool
  245. {
  246. return $this->initializeLazyObject()->flushall(...\func_get_args());
  247. }
  248. public function flushdb($key_or_address, $async = false): \RedisCluster|bool
  249. {
  250. return $this->initializeLazyObject()->flushdb(...\func_get_args());
  251. }
  252. public function geoadd($key, $lng, $lat, $member, ...$other_triples_and_options): \RedisCluster|false|int
  253. {
  254. return $this->initializeLazyObject()->geoadd(...\func_get_args());
  255. }
  256. public function geodist($key, $src, $dest, $unit = null): \RedisCluster|false|float
  257. {
  258. return $this->initializeLazyObject()->geodist(...\func_get_args());
  259. }
  260. public function geohash($key, $member, ...$other_members): \RedisCluster|array|false
  261. {
  262. return $this->initializeLazyObject()->geohash(...\func_get_args());
  263. }
  264. public function geopos($key, $member, ...$other_members): \RedisCluster|array|false
  265. {
  266. return $this->initializeLazyObject()->geopos(...\func_get_args());
  267. }
  268. public function georadius($key, $lng, $lat, $radius, $unit, $options = []): mixed
  269. {
  270. return $this->initializeLazyObject()->georadius(...\func_get_args());
  271. }
  272. public function georadius_ro($key, $lng, $lat, $radius, $unit, $options = []): mixed
  273. {
  274. return $this->initializeLazyObject()->georadius_ro(...\func_get_args());
  275. }
  276. public function georadiusbymember($key, $member, $radius, $unit, $options = []): mixed
  277. {
  278. return $this->initializeLazyObject()->georadiusbymember(...\func_get_args());
  279. }
  280. public function georadiusbymember_ro($key, $member, $radius, $unit, $options = []): mixed
  281. {
  282. return $this->initializeLazyObject()->georadiusbymember_ro(...\func_get_args());
  283. }
  284. public function geosearch($key, $position, $shape, $unit, $options = []): \RedisCluster|array
  285. {
  286. return $this->initializeLazyObject()->geosearch(...\func_get_args());
  287. }
  288. public function geosearchstore($dst, $src, $position, $shape, $unit, $options = []): \RedisCluster|array|false|int
  289. {
  290. return $this->initializeLazyObject()->geosearchstore(...\func_get_args());
  291. }
  292. public function get($key): mixed
  293. {
  294. return $this->initializeLazyObject()->get(...\func_get_args());
  295. }
  296. public function getbit($key, $value): \RedisCluster|false|int
  297. {
  298. return $this->initializeLazyObject()->getbit(...\func_get_args());
  299. }
  300. public function getlasterror(): ?string
  301. {
  302. return $this->initializeLazyObject()->getlasterror(...\func_get_args());
  303. }
  304. public function getmode(): int
  305. {
  306. return $this->initializeLazyObject()->getmode(...\func_get_args());
  307. }
  308. public function getoption($option): mixed
  309. {
  310. return $this->initializeLazyObject()->getoption(...\func_get_args());
  311. }
  312. public function getrange($key, $start, $end): \RedisCluster|false|string
  313. {
  314. return $this->initializeLazyObject()->getrange(...\func_get_args());
  315. }
  316. public function lcs($key1, $key2, $options = null): \RedisCluster|array|false|int|string
  317. {
  318. return $this->initializeLazyObject()->lcs(...\func_get_args());
  319. }
  320. public function getset($key, $value): \RedisCluster|bool|string
  321. {
  322. return $this->initializeLazyObject()->getset(...\func_get_args());
  323. }
  324. public function gettransferredbytes(): array|false
  325. {
  326. return $this->initializeLazyObject()->gettransferredbytes(...\func_get_args());
  327. }
  328. public function cleartransferredbytes(): void
  329. {
  330. $this->initializeLazyObject()->cleartransferredbytes(...\func_get_args());
  331. }
  332. public function hdel($key, $member, ...$other_members): \RedisCluster|false|int
  333. {
  334. return $this->initializeLazyObject()->hdel(...\func_get_args());
  335. }
  336. public function hexists($key, $member): \RedisCluster|bool
  337. {
  338. return $this->initializeLazyObject()->hexists(...\func_get_args());
  339. }
  340. public function hget($key, $member): mixed
  341. {
  342. return $this->initializeLazyObject()->hget(...\func_get_args());
  343. }
  344. public function hgetall($key): \RedisCluster|array|false
  345. {
  346. return $this->initializeLazyObject()->hgetall(...\func_get_args());
  347. }
  348. public function hincrby($key, $member, $value): \RedisCluster|false|int
  349. {
  350. return $this->initializeLazyObject()->hincrby(...\func_get_args());
  351. }
  352. public function hincrbyfloat($key, $member, $value): \RedisCluster|false|float
  353. {
  354. return $this->initializeLazyObject()->hincrbyfloat(...\func_get_args());
  355. }
  356. public function hkeys($key): \RedisCluster|array|false
  357. {
  358. return $this->initializeLazyObject()->hkeys(...\func_get_args());
  359. }
  360. public function hlen($key): \RedisCluster|false|int
  361. {
  362. return $this->initializeLazyObject()->hlen(...\func_get_args());
  363. }
  364. public function hmget($key, $keys): \RedisCluster|array|false
  365. {
  366. return $this->initializeLazyObject()->hmget(...\func_get_args());
  367. }
  368. public function hmset($key, $key_values): \RedisCluster|bool
  369. {
  370. return $this->initializeLazyObject()->hmset(...\func_get_args());
  371. }
  372. public function hscan($key, &$iterator, $pattern = null, $count = 0): array|bool
  373. {
  374. return $this->initializeLazyObject()->hscan($key, $iterator, ...\array_slice(\func_get_args(), 2));
  375. }
  376. public function hrandfield($key, $options = null): \RedisCluster|array|string
  377. {
  378. return $this->initializeLazyObject()->hrandfield(...\func_get_args());
  379. }
  380. public function hset($key, $member, $value): \RedisCluster|false|int
  381. {
  382. return $this->initializeLazyObject()->hset(...\func_get_args());
  383. }
  384. public function hsetnx($key, $member, $value): \RedisCluster|bool
  385. {
  386. return $this->initializeLazyObject()->hsetnx(...\func_get_args());
  387. }
  388. public function hstrlen($key, $field): \RedisCluster|false|int
  389. {
  390. return $this->initializeLazyObject()->hstrlen(...\func_get_args());
  391. }
  392. public function hvals($key): \RedisCluster|array|false
  393. {
  394. return $this->initializeLazyObject()->hvals(...\func_get_args());
  395. }
  396. public function incr($key, $by = 1): \RedisCluster|false|int
  397. {
  398. return $this->initializeLazyObject()->incr(...\func_get_args());
  399. }
  400. public function incrby($key, $value): \RedisCluster|false|int
  401. {
  402. return $this->initializeLazyObject()->incrby(...\func_get_args());
  403. }
  404. public function incrbyfloat($key, $value): \RedisCluster|false|float
  405. {
  406. return $this->initializeLazyObject()->incrbyfloat(...\func_get_args());
  407. }
  408. public function info($key_or_address, ...$sections): \RedisCluster|array|false
  409. {
  410. return $this->initializeLazyObject()->info(...\func_get_args());
  411. }
  412. public function keys($pattern): \RedisCluster|array|false
  413. {
  414. return $this->initializeLazyObject()->keys(...\func_get_args());
  415. }
  416. public function lastsave($key_or_address): \RedisCluster|false|int
  417. {
  418. return $this->initializeLazyObject()->lastsave(...\func_get_args());
  419. }
  420. public function lget($key, $index): \RedisCluster|bool|string
  421. {
  422. return $this->initializeLazyObject()->lget(...\func_get_args());
  423. }
  424. public function lindex($key, $index): mixed
  425. {
  426. return $this->initializeLazyObject()->lindex(...\func_get_args());
  427. }
  428. public function linsert($key, $pos, $pivot, $value): \RedisCluster|false|int
  429. {
  430. return $this->initializeLazyObject()->linsert(...\func_get_args());
  431. }
  432. public function llen($key): \RedisCluster|bool|int
  433. {
  434. return $this->initializeLazyObject()->llen(...\func_get_args());
  435. }
  436. public function lpop($key, $count = 0): \RedisCluster|array|bool|string
  437. {
  438. return $this->initializeLazyObject()->lpop(...\func_get_args());
  439. }
  440. public function lpos($key, $value, $options = null): \Redis|array|bool|int|null
  441. {
  442. return $this->initializeLazyObject()->lpos(...\func_get_args());
  443. }
  444. public function lpush($key, $value, ...$other_values): \RedisCluster|bool|int
  445. {
  446. return $this->initializeLazyObject()->lpush(...\func_get_args());
  447. }
  448. public function lpushx($key, $value): \RedisCluster|bool|int
  449. {
  450. return $this->initializeLazyObject()->lpushx(...\func_get_args());
  451. }
  452. public function lrange($key, $start, $end): \RedisCluster|array|false
  453. {
  454. return $this->initializeLazyObject()->lrange(...\func_get_args());
  455. }
  456. public function lrem($key, $value, $count = 0): \RedisCluster|bool|int
  457. {
  458. return $this->initializeLazyObject()->lrem(...\func_get_args());
  459. }
  460. public function lset($key, $index, $value): \RedisCluster|bool
  461. {
  462. return $this->initializeLazyObject()->lset(...\func_get_args());
  463. }
  464. public function ltrim($key, $start, $end): \RedisCluster|bool
  465. {
  466. return $this->initializeLazyObject()->ltrim(...\func_get_args());
  467. }
  468. public function mget($keys): \RedisCluster|array|false
  469. {
  470. return $this->initializeLazyObject()->mget(...\func_get_args());
  471. }
  472. public function mset($key_values): \RedisCluster|bool
  473. {
  474. return $this->initializeLazyObject()->mset(...\func_get_args());
  475. }
  476. public function msetnx($key_values): \RedisCluster|array|false
  477. {
  478. return $this->initializeLazyObject()->msetnx(...\func_get_args());
  479. }
  480. public function multi($value = \Redis::MULTI): \RedisCluster|bool
  481. {
  482. return $this->initializeLazyObject()->multi(...\func_get_args());
  483. }
  484. public function object($subcommand, $key): \RedisCluster|false|int|string
  485. {
  486. return $this->initializeLazyObject()->object(...\func_get_args());
  487. }
  488. public function persist($key): \RedisCluster|bool
  489. {
  490. return $this->initializeLazyObject()->persist(...\func_get_args());
  491. }
  492. public function pexpire($key, $timeout, $mode = null): \RedisCluster|bool
  493. {
  494. return $this->initializeLazyObject()->pexpire(...\func_get_args());
  495. }
  496. public function pexpireat($key, $timestamp, $mode = null): \RedisCluster|bool
  497. {
  498. return $this->initializeLazyObject()->pexpireat(...\func_get_args());
  499. }
  500. public function pfadd($key, $elements): \RedisCluster|bool
  501. {
  502. return $this->initializeLazyObject()->pfadd(...\func_get_args());
  503. }
  504. public function pfcount($key): \RedisCluster|false|int
  505. {
  506. return $this->initializeLazyObject()->pfcount(...\func_get_args());
  507. }
  508. public function pfmerge($key, $keys): \RedisCluster|bool
  509. {
  510. return $this->initializeLazyObject()->pfmerge(...\func_get_args());
  511. }
  512. public function ping($key_or_address, $message = null): mixed
  513. {
  514. return $this->initializeLazyObject()->ping(...\func_get_args());
  515. }
  516. public function psetex($key, $timeout, $value): \RedisCluster|bool
  517. {
  518. return $this->initializeLazyObject()->psetex(...\func_get_args());
  519. }
  520. public function psubscribe($patterns, $callback): void
  521. {
  522. $this->initializeLazyObject()->psubscribe(...\func_get_args());
  523. }
  524. public function pttl($key): \RedisCluster|false|int
  525. {
  526. return $this->initializeLazyObject()->pttl(...\func_get_args());
  527. }
  528. public function pubsub($key_or_address, ...$values): mixed
  529. {
  530. return $this->initializeLazyObject()->pubsub(...\func_get_args());
  531. }
  532. public function punsubscribe($pattern, ...$other_patterns): array|bool
  533. {
  534. return $this->initializeLazyObject()->punsubscribe(...\func_get_args());
  535. }
  536. public function randomkey($key_or_address): \RedisCluster|bool|string
  537. {
  538. return $this->initializeLazyObject()->randomkey(...\func_get_args());
  539. }
  540. public function rawcommand($key_or_address, $command, ...$args): mixed
  541. {
  542. return $this->initializeLazyObject()->rawcommand(...\func_get_args());
  543. }
  544. public function rename($key_src, $key_dst): \RedisCluster|bool
  545. {
  546. return $this->initializeLazyObject()->rename(...\func_get_args());
  547. }
  548. public function renamenx($key, $newkey): \RedisCluster|bool
  549. {
  550. return $this->initializeLazyObject()->renamenx(...\func_get_args());
  551. }
  552. public function restore($key, $timeout, $value, $options = null): \RedisCluster|bool
  553. {
  554. return $this->initializeLazyObject()->restore(...\func_get_args());
  555. }
  556. public function role($key_or_address): mixed
  557. {
  558. return $this->initializeLazyObject()->role(...\func_get_args());
  559. }
  560. public function rpop($key, $count = 0): \RedisCluster|array|bool|string
  561. {
  562. return $this->initializeLazyObject()->rpop(...\func_get_args());
  563. }
  564. public function rpoplpush($src, $dst): \RedisCluster|bool|string
  565. {
  566. return $this->initializeLazyObject()->rpoplpush(...\func_get_args());
  567. }
  568. public function rpush($key, ...$elements): \RedisCluster|false|int
  569. {
  570. return $this->initializeLazyObject()->rpush(...\func_get_args());
  571. }
  572. public function rpushx($key, $value): \RedisCluster|bool|int
  573. {
  574. return $this->initializeLazyObject()->rpushx(...\func_get_args());
  575. }
  576. public function sadd($key, $value, ...$other_values): \RedisCluster|false|int
  577. {
  578. return $this->initializeLazyObject()->sadd(...\func_get_args());
  579. }
  580. public function saddarray($key, $values): \RedisCluster|bool|int
  581. {
  582. return $this->initializeLazyObject()->saddarray(...\func_get_args());
  583. }
  584. public function save($key_or_address): \RedisCluster|bool
  585. {
  586. return $this->initializeLazyObject()->save(...\func_get_args());
  587. }
  588. public function scan(&$iterator, $key_or_address, $pattern = null, $count = 0): array|bool
  589. {
  590. return $this->initializeLazyObject()->scan($iterator, ...\array_slice(\func_get_args(), 1));
  591. }
  592. public function scard($key): \RedisCluster|false|int
  593. {
  594. return $this->initializeLazyObject()->scard(...\func_get_args());
  595. }
  596. public function script($key_or_address, ...$args): mixed
  597. {
  598. return $this->initializeLazyObject()->script(...\func_get_args());
  599. }
  600. public function sdiff($key, ...$other_keys): \RedisCluster|array|false
  601. {
  602. return $this->initializeLazyObject()->sdiff(...\func_get_args());
  603. }
  604. public function sdiffstore($dst, $key, ...$other_keys): \RedisCluster|false|int
  605. {
  606. return $this->initializeLazyObject()->sdiffstore(...\func_get_args());
  607. }
  608. public function set($key, $value, $options = null): \RedisCluster|bool|string
  609. {
  610. return $this->initializeLazyObject()->set(...\func_get_args());
  611. }
  612. public function setbit($key, $offset, $onoff): \RedisCluster|false|int
  613. {
  614. return $this->initializeLazyObject()->setbit(...\func_get_args());
  615. }
  616. public function setex($key, $expire, $value): \RedisCluster|bool
  617. {
  618. return $this->initializeLazyObject()->setex(...\func_get_args());
  619. }
  620. public function setnx($key, $value): \RedisCluster|bool
  621. {
  622. return $this->initializeLazyObject()->setnx(...\func_get_args());
  623. }
  624. public function setoption($option, $value): bool
  625. {
  626. return $this->initializeLazyObject()->setoption(...\func_get_args());
  627. }
  628. public function setrange($key, $offset, $value): \RedisCluster|false|int
  629. {
  630. return $this->initializeLazyObject()->setrange(...\func_get_args());
  631. }
  632. public function sinter($key, ...$other_keys): \RedisCluster|array|false
  633. {
  634. return $this->initializeLazyObject()->sinter(...\func_get_args());
  635. }
  636. public function sintercard($keys, $limit = -1): \RedisCluster|false|int
  637. {
  638. return $this->initializeLazyObject()->sintercard(...\func_get_args());
  639. }
  640. public function sinterstore($key, ...$other_keys): \RedisCluster|false|int
  641. {
  642. return $this->initializeLazyObject()->sinterstore(...\func_get_args());
  643. }
  644. public function sismember($key, $value): \RedisCluster|bool
  645. {
  646. return $this->initializeLazyObject()->sismember(...\func_get_args());
  647. }
  648. public function smismember($key, $member, ...$other_members): \RedisCluster|array|false
  649. {
  650. return $this->initializeLazyObject()->smismember(...\func_get_args());
  651. }
  652. public function slowlog($key_or_address, ...$args): mixed
  653. {
  654. return $this->initializeLazyObject()->slowlog(...\func_get_args());
  655. }
  656. public function smembers($key): \RedisCluster|array|false
  657. {
  658. return $this->initializeLazyObject()->smembers(...\func_get_args());
  659. }
  660. public function smove($src, $dst, $member): \RedisCluster|bool
  661. {
  662. return $this->initializeLazyObject()->smove(...\func_get_args());
  663. }
  664. public function sort($key, $options = null): \RedisCluster|array|bool|int|string
  665. {
  666. return $this->initializeLazyObject()->sort(...\func_get_args());
  667. }
  668. public function sort_ro($key, $options = null): \RedisCluster|array|bool|int|string
  669. {
  670. return $this->initializeLazyObject()->sort_ro(...\func_get_args());
  671. }
  672. public function spop($key, $count = 0): \RedisCluster|array|false|string
  673. {
  674. return $this->initializeLazyObject()->spop(...\func_get_args());
  675. }
  676. public function srandmember($key, $count = 0): \RedisCluster|array|false|string
  677. {
  678. return $this->initializeLazyObject()->srandmember(...\func_get_args());
  679. }
  680. public function srem($key, $value, ...$other_values): \RedisCluster|false|int
  681. {
  682. return $this->initializeLazyObject()->srem(...\func_get_args());
  683. }
  684. public function sscan($key, &$iterator, $pattern = null, $count = 0): array|false
  685. {
  686. return $this->initializeLazyObject()->sscan($key, $iterator, ...\array_slice(\func_get_args(), 2));
  687. }
  688. public function strlen($key): \RedisCluster|false|int
  689. {
  690. return $this->initializeLazyObject()->strlen(...\func_get_args());
  691. }
  692. public function subscribe($channels, $cb): void
  693. {
  694. $this->initializeLazyObject()->subscribe(...\func_get_args());
  695. }
  696. public function sunion($key, ...$other_keys): \RedisCluster|array|bool
  697. {
  698. return $this->initializeLazyObject()->sunion(...\func_get_args());
  699. }
  700. public function sunionstore($dst, $key, ...$other_keys): \RedisCluster|false|int
  701. {
  702. return $this->initializeLazyObject()->sunionstore(...\func_get_args());
  703. }
  704. public function time($key_or_address): \RedisCluster|array|bool
  705. {
  706. return $this->initializeLazyObject()->time(...\func_get_args());
  707. }
  708. public function ttl($key): \RedisCluster|false|int
  709. {
  710. return $this->initializeLazyObject()->ttl(...\func_get_args());
  711. }
  712. public function type($key): \RedisCluster|false|int
  713. {
  714. return $this->initializeLazyObject()->type(...\func_get_args());
  715. }
  716. public function unsubscribe($channels): array|bool
  717. {
  718. return $this->initializeLazyObject()->unsubscribe(...\func_get_args());
  719. }
  720. public function unlink($key, ...$other_keys): \RedisCluster|false|int
  721. {
  722. return $this->initializeLazyObject()->unlink(...\func_get_args());
  723. }
  724. public function unwatch(): bool
  725. {
  726. return $this->initializeLazyObject()->unwatch(...\func_get_args());
  727. }
  728. public function watch($key, ...$other_keys): \RedisCluster|bool
  729. {
  730. return $this->initializeLazyObject()->watch(...\func_get_args());
  731. }
  732. public function xack($key, $group, $ids): \RedisCluster|false|int
  733. {
  734. return $this->initializeLazyObject()->xack(...\func_get_args());
  735. }
  736. public function xadd($key, $id, $values, $maxlen = 0, $approx = false): \RedisCluster|false|string
  737. {
  738. return $this->initializeLazyObject()->xadd(...\func_get_args());
  739. }
  740. public function xclaim($key, $group, $consumer, $min_iddle, $ids, $options): \RedisCluster|array|false|string
  741. {
  742. return $this->initializeLazyObject()->xclaim(...\func_get_args());
  743. }
  744. public function xdel($key, $ids): \RedisCluster|false|int
  745. {
  746. return $this->initializeLazyObject()->xdel(...\func_get_args());
  747. }
  748. public function xgroup($operation, $key = null, $group = null, $id_or_consumer = null, $mkstream = false, $entries_read = -2): mixed
  749. {
  750. return $this->initializeLazyObject()->xgroup(...\func_get_args());
  751. }
  752. public function xautoclaim($key, $group, $consumer, $min_idle, $start, $count = -1, $justid = false): \RedisCluster|array|bool
  753. {
  754. return $this->initializeLazyObject()->xautoclaim(...\func_get_args());
  755. }
  756. public function xinfo($operation, $arg1 = null, $arg2 = null, $count = -1): mixed
  757. {
  758. return $this->initializeLazyObject()->xinfo(...\func_get_args());
  759. }
  760. public function xlen($key): \RedisCluster|false|int
  761. {
  762. return $this->initializeLazyObject()->xlen(...\func_get_args());
  763. }
  764. public function xpending($key, $group, $start = null, $end = null, $count = -1, $consumer = null): \RedisCluster|array|false
  765. {
  766. return $this->initializeLazyObject()->xpending(...\func_get_args());
  767. }
  768. public function xrange($key, $start, $end, $count = -1): \RedisCluster|array|bool
  769. {
  770. return $this->initializeLazyObject()->xrange(...\func_get_args());
  771. }
  772. public function xread($streams, $count = -1, $block = -1): \RedisCluster|array|bool
  773. {
  774. return $this->initializeLazyObject()->xread(...\func_get_args());
  775. }
  776. public function xreadgroup($group, $consumer, $streams, $count = 1, $block = 1): \RedisCluster|array|bool
  777. {
  778. return $this->initializeLazyObject()->xreadgroup(...\func_get_args());
  779. }
  780. public function xrevrange($key, $start, $end, $count = -1): \RedisCluster|array|bool
  781. {
  782. return $this->initializeLazyObject()->xrevrange(...\func_get_args());
  783. }
  784. public function xtrim($key, $maxlen, $approx = false, $minid = false, $limit = -1): \RedisCluster|false|int
  785. {
  786. return $this->initializeLazyObject()->xtrim(...\func_get_args());
  787. }
  788. public function zadd($key, $score_or_options, ...$more_scores_and_mems): \RedisCluster|false|float|int
  789. {
  790. return $this->initializeLazyObject()->zadd(...\func_get_args());
  791. }
  792. public function zcard($key): \RedisCluster|false|int
  793. {
  794. return $this->initializeLazyObject()->zcard(...\func_get_args());
  795. }
  796. public function zcount($key, $start, $end): \RedisCluster|false|int
  797. {
  798. return $this->initializeLazyObject()->zcount(...\func_get_args());
  799. }
  800. public function zincrby($key, $value, $member): \RedisCluster|false|float
  801. {
  802. return $this->initializeLazyObject()->zincrby(...\func_get_args());
  803. }
  804. public function zinterstore($dst, $keys, $weights = null, $aggregate = null): \RedisCluster|false|int
  805. {
  806. return $this->initializeLazyObject()->zinterstore(...\func_get_args());
  807. }
  808. public function zintercard($keys, $limit = -1): \RedisCluster|false|int
  809. {
  810. return $this->initializeLazyObject()->zintercard(...\func_get_args());
  811. }
  812. public function zlexcount($key, $min, $max): \RedisCluster|false|int
  813. {
  814. return $this->initializeLazyObject()->zlexcount(...\func_get_args());
  815. }
  816. public function zpopmax($key, $value = null): \RedisCluster|array|bool
  817. {
  818. return $this->initializeLazyObject()->zpopmax(...\func_get_args());
  819. }
  820. public function zpopmin($key, $value = null): \RedisCluster|array|bool
  821. {
  822. return $this->initializeLazyObject()->zpopmin(...\func_get_args());
  823. }
  824. public function zrange($key, $start, $end, $options = null): \RedisCluster|array|bool
  825. {
  826. return $this->initializeLazyObject()->zrange(...\func_get_args());
  827. }
  828. public function zrangestore($dstkey, $srckey, $start, $end, $options = null): \RedisCluster|false|int
  829. {
  830. return $this->initializeLazyObject()->zrangestore(...\func_get_args());
  831. }
  832. public function zrandmember($key, $options = null): \RedisCluster|array|string
  833. {
  834. return $this->initializeLazyObject()->zrandmember(...\func_get_args());
  835. }
  836. public function zrangebylex($key, $min, $max, $offset = -1, $count = -1): \RedisCluster|array|false
  837. {
  838. return $this->initializeLazyObject()->zrangebylex(...\func_get_args());
  839. }
  840. public function zrangebyscore($key, $start, $end, $options = []): \RedisCluster|array|false
  841. {
  842. return $this->initializeLazyObject()->zrangebyscore(...\func_get_args());
  843. }
  844. public function zrank($key, $member): \RedisCluster|false|int
  845. {
  846. return $this->initializeLazyObject()->zrank(...\func_get_args());
  847. }
  848. public function zrem($key, $value, ...$other_values): \RedisCluster|false|int
  849. {
  850. return $this->initializeLazyObject()->zrem(...\func_get_args());
  851. }
  852. public function zremrangebylex($key, $min, $max): \RedisCluster|false|int
  853. {
  854. return $this->initializeLazyObject()->zremrangebylex(...\func_get_args());
  855. }
  856. public function zremrangebyrank($key, $min, $max): \RedisCluster|false|int
  857. {
  858. return $this->initializeLazyObject()->zremrangebyrank(...\func_get_args());
  859. }
  860. public function zremrangebyscore($key, $min, $max): \RedisCluster|false|int
  861. {
  862. return $this->initializeLazyObject()->zremrangebyscore(...\func_get_args());
  863. }
  864. public function zrevrange($key, $min, $max, $options = null): \RedisCluster|array|bool
  865. {
  866. return $this->initializeLazyObject()->zrevrange(...\func_get_args());
  867. }
  868. public function zrevrangebylex($key, $min, $max, $options = null): \RedisCluster|array|bool
  869. {
  870. return $this->initializeLazyObject()->zrevrangebylex(...\func_get_args());
  871. }
  872. public function zrevrangebyscore($key, $min, $max, $options = null): \RedisCluster|array|bool
  873. {
  874. return $this->initializeLazyObject()->zrevrangebyscore(...\func_get_args());
  875. }
  876. public function zrevrank($key, $member): \RedisCluster|false|int
  877. {
  878. return $this->initializeLazyObject()->zrevrank(...\func_get_args());
  879. }
  880. public function zscan($key, &$iterator, $pattern = null, $count = 0): \RedisCluster|array|bool
  881. {
  882. return $this->initializeLazyObject()->zscan($key, $iterator, ...\array_slice(\func_get_args(), 2));
  883. }
  884. public function zscore($key, $member): \RedisCluster|false|float
  885. {
  886. return $this->initializeLazyObject()->zscore(...\func_get_args());
  887. }
  888. public function zmscore($key, $member, ...$other_members): \Redis|array|false
  889. {
  890. return $this->initializeLazyObject()->zmscore(...\func_get_args());
  891. }
  892. public function zunionstore($dst, $keys, $weights = null, $aggregate = null): \RedisCluster|false|int
  893. {
  894. return $this->initializeLazyObject()->zunionstore(...\func_get_args());
  895. }
  896. public function zinter($keys, $weights = null, $options = null): \RedisCluster|array|false
  897. {
  898. return $this->initializeLazyObject()->zinter(...\func_get_args());
  899. }
  900. public function zdiffstore($dst, $keys): \RedisCluster|false|int
  901. {
  902. return $this->initializeLazyObject()->zdiffstore(...\func_get_args());
  903. }
  904. public function zunion($keys, $weights = null, $options = null): \RedisCluster|array|false
  905. {
  906. return $this->initializeLazyObject()->zunion(...\func_get_args());
  907. }
  908. public function zdiff($keys, $options = null): \RedisCluster|array|false
  909. {
  910. return $this->initializeLazyObject()->zdiff(...\func_get_args());
  911. }
  912. }