Redis5Proxy.php 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225
  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 Redis5Proxy extends \Redis implements ResetInterface, LazyObjectInterface
  21. {
  22. use RedisProxyTrait {
  23. resetLazyObject as reset;
  24. }
  25. public function __construct()
  26. {
  27. $this->initializeLazyObject()->__construct(...\func_get_args());
  28. }
  29. public function _prefix($key)
  30. {
  31. return $this->initializeLazyObject()->_prefix(...\func_get_args());
  32. }
  33. public function _serialize($value)
  34. {
  35. return $this->initializeLazyObject()->_serialize(...\func_get_args());
  36. }
  37. public function _unserialize($value)
  38. {
  39. return $this->initializeLazyObject()->_unserialize(...\func_get_args());
  40. }
  41. public function _pack($value)
  42. {
  43. return $this->initializeLazyObject()->_pack(...\func_get_args());
  44. }
  45. public function _unpack($value)
  46. {
  47. return $this->initializeLazyObject()->_unpack(...\func_get_args());
  48. }
  49. public function _compress($value)
  50. {
  51. return $this->initializeLazyObject()->_compress(...\func_get_args());
  52. }
  53. public function _uncompress($value)
  54. {
  55. return $this->initializeLazyObject()->_uncompress(...\func_get_args());
  56. }
  57. public function acl($subcmd, ...$args)
  58. {
  59. return $this->initializeLazyObject()->acl(...\func_get_args());
  60. }
  61. public function append($key, $value)
  62. {
  63. return $this->initializeLazyObject()->append(...\func_get_args());
  64. }
  65. public function auth(#[\SensitiveParameter] $auth)
  66. {
  67. return $this->initializeLazyObject()->auth(...\func_get_args());
  68. }
  69. public function bgSave()
  70. {
  71. return $this->initializeLazyObject()->bgSave(...\func_get_args());
  72. }
  73. public function bgrewriteaof()
  74. {
  75. return $this->initializeLazyObject()->bgrewriteaof(...\func_get_args());
  76. }
  77. public function bitcount($key)
  78. {
  79. return $this->initializeLazyObject()->bitcount(...\func_get_args());
  80. }
  81. public function bitop($operation, $ret_key, $key, ...$other_keys)
  82. {
  83. return $this->initializeLazyObject()->bitop(...\func_get_args());
  84. }
  85. public function bitpos($key, $bit, $start = null, $end = null)
  86. {
  87. return $this->initializeLazyObject()->bitpos(...\func_get_args());
  88. }
  89. public function blPop($key, $timeout_or_key, ...$extra_args)
  90. {
  91. return $this->initializeLazyObject()->blPop(...\func_get_args());
  92. }
  93. public function brPop($key, $timeout_or_key, ...$extra_args)
  94. {
  95. return $this->initializeLazyObject()->brPop(...\func_get_args());
  96. }
  97. public function brpoplpush($src, $dst, $timeout)
  98. {
  99. return $this->initializeLazyObject()->brpoplpush(...\func_get_args());
  100. }
  101. public function bzPopMax($key, $timeout_or_key, ...$extra_args)
  102. {
  103. return $this->initializeLazyObject()->bzPopMax(...\func_get_args());
  104. }
  105. public function bzPopMin($key, $timeout_or_key, ...$extra_args)
  106. {
  107. return $this->initializeLazyObject()->bzPopMin(...\func_get_args());
  108. }
  109. public function clearLastError()
  110. {
  111. return $this->initializeLazyObject()->clearLastError(...\func_get_args());
  112. }
  113. public function client($cmd, ...$args)
  114. {
  115. return $this->initializeLazyObject()->client(...\func_get_args());
  116. }
  117. public function close()
  118. {
  119. return $this->initializeLazyObject()->close(...\func_get_args());
  120. }
  121. public function command(...$args)
  122. {
  123. return $this->initializeLazyObject()->command(...\func_get_args());
  124. }
  125. public function config($cmd, $key, $value = null)
  126. {
  127. return $this->initializeLazyObject()->config(...\func_get_args());
  128. }
  129. public function connect($host, $port = null, $timeout = null, $retry_interval = null)
  130. {
  131. return $this->initializeLazyObject()->connect(...\func_get_args());
  132. }
  133. public function dbSize()
  134. {
  135. return $this->initializeLazyObject()->dbSize(...\func_get_args());
  136. }
  137. public function debug($key)
  138. {
  139. return $this->initializeLazyObject()->debug(...\func_get_args());
  140. }
  141. public function decr($key)
  142. {
  143. return $this->initializeLazyObject()->decr(...\func_get_args());
  144. }
  145. public function decrBy($key, $value)
  146. {
  147. return $this->initializeLazyObject()->decrBy(...\func_get_args());
  148. }
  149. public function del($key, ...$other_keys)
  150. {
  151. return $this->initializeLazyObject()->del(...\func_get_args());
  152. }
  153. public function discard()
  154. {
  155. return $this->initializeLazyObject()->discard(...\func_get_args());
  156. }
  157. public function dump($key)
  158. {
  159. return $this->initializeLazyObject()->dump(...\func_get_args());
  160. }
  161. public function echo($msg)
  162. {
  163. return $this->initializeLazyObject()->echo(...\func_get_args());
  164. }
  165. public function eval($script, $args = null, $num_keys = null)
  166. {
  167. return $this->initializeLazyObject()->eval(...\func_get_args());
  168. }
  169. public function evalsha($script_sha, $args = null, $num_keys = null)
  170. {
  171. return $this->initializeLazyObject()->evalsha(...\func_get_args());
  172. }
  173. public function exec()
  174. {
  175. return $this->initializeLazyObject()->exec(...\func_get_args());
  176. }
  177. public function exists($key, ...$other_keys)
  178. {
  179. return $this->initializeLazyObject()->exists(...\func_get_args());
  180. }
  181. public function expire($key, $timeout)
  182. {
  183. return $this->initializeLazyObject()->expire(...\func_get_args());
  184. }
  185. public function expireAt($key, $timestamp)
  186. {
  187. return $this->initializeLazyObject()->expireAt(...\func_get_args());
  188. }
  189. public function flushAll($async = null)
  190. {
  191. return $this->initializeLazyObject()->flushAll(...\func_get_args());
  192. }
  193. public function flushDB($async = null)
  194. {
  195. return $this->initializeLazyObject()->flushDB(...\func_get_args());
  196. }
  197. public function geoadd($key, $lng, $lat, $member, ...$other_triples)
  198. {
  199. return $this->initializeLazyObject()->geoadd(...\func_get_args());
  200. }
  201. public function geodist($key, $src, $dst, $unit = null)
  202. {
  203. return $this->initializeLazyObject()->geodist(...\func_get_args());
  204. }
  205. public function geohash($key, $member, ...$other_members)
  206. {
  207. return $this->initializeLazyObject()->geohash(...\func_get_args());
  208. }
  209. public function geopos($key, $member, ...$other_members)
  210. {
  211. return $this->initializeLazyObject()->geopos(...\func_get_args());
  212. }
  213. public function georadius($key, $lng, $lan, $radius, $unit, $opts = null)
  214. {
  215. return $this->initializeLazyObject()->georadius(...\func_get_args());
  216. }
  217. public function georadius_ro($key, $lng, $lan, $radius, $unit, $opts = null)
  218. {
  219. return $this->initializeLazyObject()->georadius_ro(...\func_get_args());
  220. }
  221. public function georadiusbymember($key, $member, $radius, $unit, $opts = null)
  222. {
  223. return $this->initializeLazyObject()->georadiusbymember(...\func_get_args());
  224. }
  225. public function georadiusbymember_ro($key, $member, $radius, $unit, $opts = null)
  226. {
  227. return $this->initializeLazyObject()->georadiusbymember_ro(...\func_get_args());
  228. }
  229. public function get($key)
  230. {
  231. return $this->initializeLazyObject()->get(...\func_get_args());
  232. }
  233. public function getAuth()
  234. {
  235. return $this->initializeLazyObject()->getAuth(...\func_get_args());
  236. }
  237. public function getBit($key, $offset)
  238. {
  239. return $this->initializeLazyObject()->getBit(...\func_get_args());
  240. }
  241. public function getDBNum()
  242. {
  243. return $this->initializeLazyObject()->getDBNum(...\func_get_args());
  244. }
  245. public function getHost()
  246. {
  247. return $this->initializeLazyObject()->getHost(...\func_get_args());
  248. }
  249. public function getLastError()
  250. {
  251. return $this->initializeLazyObject()->getLastError(...\func_get_args());
  252. }
  253. public function getMode()
  254. {
  255. return $this->initializeLazyObject()->getMode(...\func_get_args());
  256. }
  257. public function getOption($option)
  258. {
  259. return $this->initializeLazyObject()->getOption(...\func_get_args());
  260. }
  261. public function getPersistentID()
  262. {
  263. return $this->initializeLazyObject()->getPersistentID(...\func_get_args());
  264. }
  265. public function getPort()
  266. {
  267. return $this->initializeLazyObject()->getPort(...\func_get_args());
  268. }
  269. public function getRange($key, $start, $end)
  270. {
  271. return $this->initializeLazyObject()->getRange(...\func_get_args());
  272. }
  273. public function getReadTimeout()
  274. {
  275. return $this->initializeLazyObject()->getReadTimeout(...\func_get_args());
  276. }
  277. public function getSet($key, $value)
  278. {
  279. return $this->initializeLazyObject()->getSet(...\func_get_args());
  280. }
  281. public function getTimeout()
  282. {
  283. return $this->initializeLazyObject()->getTimeout(...\func_get_args());
  284. }
  285. public function hDel($key, $member, ...$other_members)
  286. {
  287. return $this->initializeLazyObject()->hDel(...\func_get_args());
  288. }
  289. public function hExists($key, $member)
  290. {
  291. return $this->initializeLazyObject()->hExists(...\func_get_args());
  292. }
  293. public function hGet($key, $member)
  294. {
  295. return $this->initializeLazyObject()->hGet(...\func_get_args());
  296. }
  297. public function hGetAll($key)
  298. {
  299. return $this->initializeLazyObject()->hGetAll(...\func_get_args());
  300. }
  301. public function hIncrBy($key, $member, $value)
  302. {
  303. return $this->initializeLazyObject()->hIncrBy(...\func_get_args());
  304. }
  305. public function hIncrByFloat($key, $member, $value)
  306. {
  307. return $this->initializeLazyObject()->hIncrByFloat(...\func_get_args());
  308. }
  309. public function hKeys($key)
  310. {
  311. return $this->initializeLazyObject()->hKeys(...\func_get_args());
  312. }
  313. public function hLen($key)
  314. {
  315. return $this->initializeLazyObject()->hLen(...\func_get_args());
  316. }
  317. public function hMget($key, $keys)
  318. {
  319. return $this->initializeLazyObject()->hMget(...\func_get_args());
  320. }
  321. public function hMset($key, $pairs)
  322. {
  323. return $this->initializeLazyObject()->hMset(...\func_get_args());
  324. }
  325. public function hSet($key, $member, $value)
  326. {
  327. return $this->initializeLazyObject()->hSet(...\func_get_args());
  328. }
  329. public function hSetNx($key, $member, $value)
  330. {
  331. return $this->initializeLazyObject()->hSetNx(...\func_get_args());
  332. }
  333. public function hStrLen($key, $member)
  334. {
  335. return $this->initializeLazyObject()->hStrLen(...\func_get_args());
  336. }
  337. public function hVals($key)
  338. {
  339. return $this->initializeLazyObject()->hVals(...\func_get_args());
  340. }
  341. public function hscan($str_key, &$i_iterator, $str_pattern = null, $i_count = null)
  342. {
  343. return $this->initializeLazyObject()->hscan($str_key, $i_iterator, ...\array_slice(\func_get_args(), 2));
  344. }
  345. public function incr($key)
  346. {
  347. return $this->initializeLazyObject()->incr(...\func_get_args());
  348. }
  349. public function incrBy($key, $value)
  350. {
  351. return $this->initializeLazyObject()->incrBy(...\func_get_args());
  352. }
  353. public function incrByFloat($key, $value)
  354. {
  355. return $this->initializeLazyObject()->incrByFloat(...\func_get_args());
  356. }
  357. public function info($option = null)
  358. {
  359. return $this->initializeLazyObject()->info(...\func_get_args());
  360. }
  361. public function isConnected()
  362. {
  363. return $this->initializeLazyObject()->isConnected(...\func_get_args());
  364. }
  365. public function keys($pattern)
  366. {
  367. return $this->initializeLazyObject()->keys(...\func_get_args());
  368. }
  369. public function lInsert($key, $position, $pivot, $value)
  370. {
  371. return $this->initializeLazyObject()->lInsert(...\func_get_args());
  372. }
  373. public function lLen($key)
  374. {
  375. return $this->initializeLazyObject()->lLen(...\func_get_args());
  376. }
  377. public function lPop($key)
  378. {
  379. return $this->initializeLazyObject()->lPop(...\func_get_args());
  380. }
  381. public function lPush($key, $value)
  382. {
  383. return $this->initializeLazyObject()->lPush(...\func_get_args());
  384. }
  385. public function lPushx($key, $value)
  386. {
  387. return $this->initializeLazyObject()->lPushx(...\func_get_args());
  388. }
  389. public function lSet($key, $index, $value)
  390. {
  391. return $this->initializeLazyObject()->lSet(...\func_get_args());
  392. }
  393. public function lastSave()
  394. {
  395. return $this->initializeLazyObject()->lastSave(...\func_get_args());
  396. }
  397. public function lindex($key, $index)
  398. {
  399. return $this->initializeLazyObject()->lindex(...\func_get_args());
  400. }
  401. public function lrange($key, $start, $end)
  402. {
  403. return $this->initializeLazyObject()->lrange(...\func_get_args());
  404. }
  405. public function lrem($key, $value, $count)
  406. {
  407. return $this->initializeLazyObject()->lrem(...\func_get_args());
  408. }
  409. public function ltrim($key, $start, $stop)
  410. {
  411. return $this->initializeLazyObject()->ltrim(...\func_get_args());
  412. }
  413. public function mget($keys)
  414. {
  415. return $this->initializeLazyObject()->mget(...\func_get_args());
  416. }
  417. public function migrate($host, $port, $key, $db, $timeout, $copy = null, $replace = null)
  418. {
  419. return $this->initializeLazyObject()->migrate(...\func_get_args());
  420. }
  421. public function move($key, $dbindex)
  422. {
  423. return $this->initializeLazyObject()->move(...\func_get_args());
  424. }
  425. public function mset($pairs)
  426. {
  427. return $this->initializeLazyObject()->mset(...\func_get_args());
  428. }
  429. public function msetnx($pairs)
  430. {
  431. return $this->initializeLazyObject()->msetnx(...\func_get_args());
  432. }
  433. public function multi($mode = null)
  434. {
  435. return $this->initializeLazyObject()->multi(...\func_get_args());
  436. }
  437. public function object($field, $key)
  438. {
  439. return $this->initializeLazyObject()->object(...\func_get_args());
  440. }
  441. public function pconnect($host, $port = null, $timeout = null)
  442. {
  443. return $this->initializeLazyObject()->pconnect(...\func_get_args());
  444. }
  445. public function persist($key)
  446. {
  447. return $this->initializeLazyObject()->persist(...\func_get_args());
  448. }
  449. public function pexpire($key, $timestamp)
  450. {
  451. return $this->initializeLazyObject()->pexpire(...\func_get_args());
  452. }
  453. public function pexpireAt($key, $timestamp)
  454. {
  455. return $this->initializeLazyObject()->pexpireAt(...\func_get_args());
  456. }
  457. public function pfadd($key, $elements)
  458. {
  459. return $this->initializeLazyObject()->pfadd(...\func_get_args());
  460. }
  461. public function pfcount($key)
  462. {
  463. return $this->initializeLazyObject()->pfcount(...\func_get_args());
  464. }
  465. public function pfmerge($dstkey, $keys)
  466. {
  467. return $this->initializeLazyObject()->pfmerge(...\func_get_args());
  468. }
  469. public function ping()
  470. {
  471. return $this->initializeLazyObject()->ping(...\func_get_args());
  472. }
  473. public function pipeline()
  474. {
  475. return $this->initializeLazyObject()->pipeline(...\func_get_args());
  476. }
  477. public function psetex($key, $expire, $value)
  478. {
  479. return $this->initializeLazyObject()->psetex(...\func_get_args());
  480. }
  481. public function psubscribe($patterns, $callback)
  482. {
  483. return $this->initializeLazyObject()->psubscribe(...\func_get_args());
  484. }
  485. public function pttl($key)
  486. {
  487. return $this->initializeLazyObject()->pttl(...\func_get_args());
  488. }
  489. public function publish($channel, $message)
  490. {
  491. return $this->initializeLazyObject()->publish(...\func_get_args());
  492. }
  493. public function pubsub($cmd, ...$args)
  494. {
  495. return $this->initializeLazyObject()->pubsub(...\func_get_args());
  496. }
  497. public function punsubscribe($pattern, ...$other_patterns)
  498. {
  499. return $this->initializeLazyObject()->punsubscribe(...\func_get_args());
  500. }
  501. public function rPop($key)
  502. {
  503. return $this->initializeLazyObject()->rPop(...\func_get_args());
  504. }
  505. public function rPush($key, $value)
  506. {
  507. return $this->initializeLazyObject()->rPush(...\func_get_args());
  508. }
  509. public function rPushx($key, $value)
  510. {
  511. return $this->initializeLazyObject()->rPushx(...\func_get_args());
  512. }
  513. public function randomKey()
  514. {
  515. return $this->initializeLazyObject()->randomKey(...\func_get_args());
  516. }
  517. public function rawcommand($cmd, ...$args)
  518. {
  519. return $this->initializeLazyObject()->rawcommand(...\func_get_args());
  520. }
  521. public function rename($key, $newkey)
  522. {
  523. return $this->initializeLazyObject()->rename(...\func_get_args());
  524. }
  525. public function renameNx($key, $newkey)
  526. {
  527. return $this->initializeLazyObject()->renameNx(...\func_get_args());
  528. }
  529. public function restore($ttl, $key, $value)
  530. {
  531. return $this->initializeLazyObject()->restore(...\func_get_args());
  532. }
  533. public function role()
  534. {
  535. return $this->initializeLazyObject()->role(...\func_get_args());
  536. }
  537. public function rpoplpush($src, $dst)
  538. {
  539. return $this->initializeLazyObject()->rpoplpush(...\func_get_args());
  540. }
  541. public function sAdd($key, $value)
  542. {
  543. return $this->initializeLazyObject()->sAdd(...\func_get_args());
  544. }
  545. public function sAddArray($key, $options)
  546. {
  547. return $this->initializeLazyObject()->sAddArray(...\func_get_args());
  548. }
  549. public function sDiff($key, ...$other_keys)
  550. {
  551. return $this->initializeLazyObject()->sDiff(...\func_get_args());
  552. }
  553. public function sDiffStore($dst, $key, ...$other_keys)
  554. {
  555. return $this->initializeLazyObject()->sDiffStore(...\func_get_args());
  556. }
  557. public function sInter($key, ...$other_keys)
  558. {
  559. return $this->initializeLazyObject()->sInter(...\func_get_args());
  560. }
  561. public function sInterStore($dst, $key, ...$other_keys)
  562. {
  563. return $this->initializeLazyObject()->sInterStore(...\func_get_args());
  564. }
  565. public function sMembers($key)
  566. {
  567. return $this->initializeLazyObject()->sMembers(...\func_get_args());
  568. }
  569. public function sMisMember($key, $member, ...$other_members)
  570. {
  571. return $this->initializeLazyObject()->sMisMember(...\func_get_args());
  572. }
  573. public function sMove($src, $dst, $value)
  574. {
  575. return $this->initializeLazyObject()->sMove(...\func_get_args());
  576. }
  577. public function sPop($key)
  578. {
  579. return $this->initializeLazyObject()->sPop(...\func_get_args());
  580. }
  581. public function sRandMember($key, $count = null)
  582. {
  583. return $this->initializeLazyObject()->sRandMember(...\func_get_args());
  584. }
  585. public function sUnion($key, ...$other_keys)
  586. {
  587. return $this->initializeLazyObject()->sUnion(...\func_get_args());
  588. }
  589. public function sUnionStore($dst, $key, ...$other_keys)
  590. {
  591. return $this->initializeLazyObject()->sUnionStore(...\func_get_args());
  592. }
  593. public function save()
  594. {
  595. return $this->initializeLazyObject()->save(...\func_get_args());
  596. }
  597. public function scan(&$i_iterator, $str_pattern = null, $i_count = null)
  598. {
  599. return $this->initializeLazyObject()->scan($i_iterator, ...\array_slice(\func_get_args(), 1));
  600. }
  601. public function scard($key)
  602. {
  603. return $this->initializeLazyObject()->scard(...\func_get_args());
  604. }
  605. public function script($cmd, ...$args)
  606. {
  607. return $this->initializeLazyObject()->script(...\func_get_args());
  608. }
  609. public function select($dbindex)
  610. {
  611. return $this->initializeLazyObject()->select(...\func_get_args());
  612. }
  613. public function set($key, $value, $opts = null)
  614. {
  615. return $this->initializeLazyObject()->set(...\func_get_args());
  616. }
  617. public function setBit($key, $offset, $value)
  618. {
  619. return $this->initializeLazyObject()->setBit(...\func_get_args());
  620. }
  621. public function setOption($option, $value)
  622. {
  623. return $this->initializeLazyObject()->setOption(...\func_get_args());
  624. }
  625. public function setRange($key, $offset, $value)
  626. {
  627. return $this->initializeLazyObject()->setRange(...\func_get_args());
  628. }
  629. public function setex($key, $expire, $value)
  630. {
  631. return $this->initializeLazyObject()->setex(...\func_get_args());
  632. }
  633. public function setnx($key, $value)
  634. {
  635. return $this->initializeLazyObject()->setnx(...\func_get_args());
  636. }
  637. public function sismember($key, $value)
  638. {
  639. return $this->initializeLazyObject()->sismember(...\func_get_args());
  640. }
  641. public function slaveof($host = null, $port = null)
  642. {
  643. return $this->initializeLazyObject()->slaveof(...\func_get_args());
  644. }
  645. public function slowlog($arg, $option = null)
  646. {
  647. return $this->initializeLazyObject()->slowlog(...\func_get_args());
  648. }
  649. public function sort($key, $options = null)
  650. {
  651. return $this->initializeLazyObject()->sort(...\func_get_args());
  652. }
  653. public function sortAsc($key, $pattern = null, $get = null, $start = null, $end = null, $getList = null)
  654. {
  655. return $this->initializeLazyObject()->sortAsc(...\func_get_args());
  656. }
  657. public function sortAscAlpha($key, $pattern = null, $get = null, $start = null, $end = null, $getList = null)
  658. {
  659. return $this->initializeLazyObject()->sortAscAlpha(...\func_get_args());
  660. }
  661. public function sortDesc($key, $pattern = null, $get = null, $start = null, $end = null, $getList = null)
  662. {
  663. return $this->initializeLazyObject()->sortDesc(...\func_get_args());
  664. }
  665. public function sortDescAlpha($key, $pattern = null, $get = null, $start = null, $end = null, $getList = null)
  666. {
  667. return $this->initializeLazyObject()->sortDescAlpha(...\func_get_args());
  668. }
  669. public function srem($key, $member, ...$other_members)
  670. {
  671. return $this->initializeLazyObject()->srem(...\func_get_args());
  672. }
  673. public function sscan($str_key, &$i_iterator, $str_pattern = null, $i_count = null)
  674. {
  675. return $this->initializeLazyObject()->sscan($str_key, $i_iterator, ...\array_slice(\func_get_args(), 2));
  676. }
  677. public function strlen($key)
  678. {
  679. return $this->initializeLazyObject()->strlen(...\func_get_args());
  680. }
  681. public function subscribe($channels, $callback)
  682. {
  683. return $this->initializeLazyObject()->subscribe(...\func_get_args());
  684. }
  685. public function swapdb($srcdb, $dstdb)
  686. {
  687. return $this->initializeLazyObject()->swapdb(...\func_get_args());
  688. }
  689. public function time()
  690. {
  691. return $this->initializeLazyObject()->time(...\func_get_args());
  692. }
  693. public function ttl($key)
  694. {
  695. return $this->initializeLazyObject()->ttl(...\func_get_args());
  696. }
  697. public function type($key)
  698. {
  699. return $this->initializeLazyObject()->type(...\func_get_args());
  700. }
  701. public function unlink($key, ...$other_keys)
  702. {
  703. return $this->initializeLazyObject()->unlink(...\func_get_args());
  704. }
  705. public function unsubscribe($channel, ...$other_channels)
  706. {
  707. return $this->initializeLazyObject()->unsubscribe(...\func_get_args());
  708. }
  709. public function unwatch()
  710. {
  711. return $this->initializeLazyObject()->unwatch(...\func_get_args());
  712. }
  713. public function wait($numslaves, $timeout)
  714. {
  715. return $this->initializeLazyObject()->wait(...\func_get_args());
  716. }
  717. public function watch($key, ...$other_keys)
  718. {
  719. return $this->initializeLazyObject()->watch(...\func_get_args());
  720. }
  721. public function xack($str_key, $str_group, $arr_ids)
  722. {
  723. return $this->initializeLazyObject()->xack(...\func_get_args());
  724. }
  725. public function xadd($str_key, $str_id, $arr_fields, $i_maxlen = null, $boo_approximate = null)
  726. {
  727. return $this->initializeLazyObject()->xadd(...\func_get_args());
  728. }
  729. public function xclaim($str_key, $str_group, $str_consumer, $i_min_idle, $arr_ids, $arr_opts = null)
  730. {
  731. return $this->initializeLazyObject()->xclaim(...\func_get_args());
  732. }
  733. public function xdel($str_key, $arr_ids)
  734. {
  735. return $this->initializeLazyObject()->xdel(...\func_get_args());
  736. }
  737. public function xgroup($str_operation, $str_key = null, $str_arg1 = null, $str_arg2 = null, $str_arg3 = null)
  738. {
  739. return $this->initializeLazyObject()->xgroup(...\func_get_args());
  740. }
  741. public function xinfo($str_cmd, $str_key = null, $str_group = null)
  742. {
  743. return $this->initializeLazyObject()->xinfo(...\func_get_args());
  744. }
  745. public function xlen($key)
  746. {
  747. return $this->initializeLazyObject()->xlen(...\func_get_args());
  748. }
  749. public function xpending($str_key, $str_group, $str_start = null, $str_end = null, $i_count = null, $str_consumer = null)
  750. {
  751. return $this->initializeLazyObject()->xpending(...\func_get_args());
  752. }
  753. public function xrange($str_key, $str_start, $str_end, $i_count = null)
  754. {
  755. return $this->initializeLazyObject()->xrange(...\func_get_args());
  756. }
  757. public function xread($arr_streams, $i_count = null, $i_block = null)
  758. {
  759. return $this->initializeLazyObject()->xread(...\func_get_args());
  760. }
  761. public function xreadgroup($str_group, $str_consumer, $arr_streams, $i_count = null, $i_block = null)
  762. {
  763. return $this->initializeLazyObject()->xreadgroup(...\func_get_args());
  764. }
  765. public function xrevrange($str_key, $str_start, $str_end, $i_count = null)
  766. {
  767. return $this->initializeLazyObject()->xrevrange(...\func_get_args());
  768. }
  769. public function xtrim($str_key, $i_maxlen, $boo_approximate = null)
  770. {
  771. return $this->initializeLazyObject()->xtrim(...\func_get_args());
  772. }
  773. public function zAdd($key, $score, $value, ...$extra_args)
  774. {
  775. return $this->initializeLazyObject()->zAdd(...\func_get_args());
  776. }
  777. public function zCard($key)
  778. {
  779. return $this->initializeLazyObject()->zCard(...\func_get_args());
  780. }
  781. public function zCount($key, $min, $max)
  782. {
  783. return $this->initializeLazyObject()->zCount(...\func_get_args());
  784. }
  785. public function zIncrBy($key, $value, $member)
  786. {
  787. return $this->initializeLazyObject()->zIncrBy(...\func_get_args());
  788. }
  789. public function zLexCount($key, $min, $max)
  790. {
  791. return $this->initializeLazyObject()->zLexCount(...\func_get_args());
  792. }
  793. public function zPopMax($key)
  794. {
  795. return $this->initializeLazyObject()->zPopMax(...\func_get_args());
  796. }
  797. public function zPopMin($key)
  798. {
  799. return $this->initializeLazyObject()->zPopMin(...\func_get_args());
  800. }
  801. public function zRange($key, $start, $end, $scores = null)
  802. {
  803. return $this->initializeLazyObject()->zRange(...\func_get_args());
  804. }
  805. public function zRangeByLex($key, $min, $max, $offset = null, $limit = null)
  806. {
  807. return $this->initializeLazyObject()->zRangeByLex(...\func_get_args());
  808. }
  809. public function zRangeByScore($key, $start, $end, $options = null)
  810. {
  811. return $this->initializeLazyObject()->zRangeByScore(...\func_get_args());
  812. }
  813. public function zRank($key, $member)
  814. {
  815. return $this->initializeLazyObject()->zRank(...\func_get_args());
  816. }
  817. public function zRem($key, $member, ...$other_members)
  818. {
  819. return $this->initializeLazyObject()->zRem(...\func_get_args());
  820. }
  821. public function zRemRangeByLex($key, $min, $max)
  822. {
  823. return $this->initializeLazyObject()->zRemRangeByLex(...\func_get_args());
  824. }
  825. public function zRemRangeByRank($key, $start, $end)
  826. {
  827. return $this->initializeLazyObject()->zRemRangeByRank(...\func_get_args());
  828. }
  829. public function zRemRangeByScore($key, $min, $max)
  830. {
  831. return $this->initializeLazyObject()->zRemRangeByScore(...\func_get_args());
  832. }
  833. public function zRevRange($key, $start, $end, $scores = null)
  834. {
  835. return $this->initializeLazyObject()->zRevRange(...\func_get_args());
  836. }
  837. public function zRevRangeByLex($key, $min, $max, $offset = null, $limit = null)
  838. {
  839. return $this->initializeLazyObject()->zRevRangeByLex(...\func_get_args());
  840. }
  841. public function zRevRangeByScore($key, $start, $end, $options = null)
  842. {
  843. return $this->initializeLazyObject()->zRevRangeByScore(...\func_get_args());
  844. }
  845. public function zRevRank($key, $member)
  846. {
  847. return $this->initializeLazyObject()->zRevRank(...\func_get_args());
  848. }
  849. public function zScore($key, $member)
  850. {
  851. return $this->initializeLazyObject()->zScore(...\func_get_args());
  852. }
  853. public function zinterstore($key, $keys, $weights = null, $aggregate = null)
  854. {
  855. return $this->initializeLazyObject()->zinterstore(...\func_get_args());
  856. }
  857. public function zscan($str_key, &$i_iterator, $str_pattern = null, $i_count = null)
  858. {
  859. return $this->initializeLazyObject()->zscan($str_key, $i_iterator, ...\array_slice(\func_get_args(), 2));
  860. }
  861. public function zunionstore($key, $keys, $weights = null, $aggregate = null)
  862. {
  863. return $this->initializeLazyObject()->zunionstore(...\func_get_args());
  864. }
  865. public function delete($key, ...$other_keys)
  866. {
  867. return $this->initializeLazyObject()->delete(...\func_get_args());
  868. }
  869. public function evaluate($script, $args = null, $num_keys = null)
  870. {
  871. return $this->initializeLazyObject()->evaluate(...\func_get_args());
  872. }
  873. public function evaluateSha($script_sha, $args = null, $num_keys = null)
  874. {
  875. return $this->initializeLazyObject()->evaluateSha(...\func_get_args());
  876. }
  877. public function getKeys($pattern)
  878. {
  879. return $this->initializeLazyObject()->getKeys(...\func_get_args());
  880. }
  881. public function getMultiple($keys)
  882. {
  883. return $this->initializeLazyObject()->getMultiple(...\func_get_args());
  884. }
  885. public function lGet($key, $index)
  886. {
  887. return $this->initializeLazyObject()->lGet(...\func_get_args());
  888. }
  889. public function lGetRange($key, $start, $end)
  890. {
  891. return $this->initializeLazyObject()->lGetRange(...\func_get_args());
  892. }
  893. public function lRemove($key, $value, $count)
  894. {
  895. return $this->initializeLazyObject()->lRemove(...\func_get_args());
  896. }
  897. public function lSize($key)
  898. {
  899. return $this->initializeLazyObject()->lSize(...\func_get_args());
  900. }
  901. public function listTrim($key, $start, $stop)
  902. {
  903. return $this->initializeLazyObject()->listTrim(...\func_get_args());
  904. }
  905. public function open($host, $port = null, $timeout = null, $retry_interval = null)
  906. {
  907. return $this->initializeLazyObject()->open(...\func_get_args());
  908. }
  909. public function popen($host, $port = null, $timeout = null)
  910. {
  911. return $this->initializeLazyObject()->popen(...\func_get_args());
  912. }
  913. public function renameKey($key, $newkey)
  914. {
  915. return $this->initializeLazyObject()->renameKey(...\func_get_args());
  916. }
  917. public function sContains($key, $value)
  918. {
  919. return $this->initializeLazyObject()->sContains(...\func_get_args());
  920. }
  921. public function sGetMembers($key)
  922. {
  923. return $this->initializeLazyObject()->sGetMembers(...\func_get_args());
  924. }
  925. public function sRemove($key, $member, ...$other_members)
  926. {
  927. return $this->initializeLazyObject()->sRemove(...\func_get_args());
  928. }
  929. public function sSize($key)
  930. {
  931. return $this->initializeLazyObject()->sSize(...\func_get_args());
  932. }
  933. public function sendEcho($msg)
  934. {
  935. return $this->initializeLazyObject()->sendEcho(...\func_get_args());
  936. }
  937. public function setTimeout($key, $timeout)
  938. {
  939. return $this->initializeLazyObject()->setTimeout(...\func_get_args());
  940. }
  941. public function substr($key, $start, $end)
  942. {
  943. return $this->initializeLazyObject()->substr(...\func_get_args());
  944. }
  945. public function zDelete($key, $member, ...$other_members)
  946. {
  947. return $this->initializeLazyObject()->zDelete(...\func_get_args());
  948. }
  949. public function zDeleteRangeByRank($key, $min, $max)
  950. {
  951. return $this->initializeLazyObject()->zDeleteRangeByRank(...\func_get_args());
  952. }
  953. public function zDeleteRangeByScore($key, $min, $max)
  954. {
  955. return $this->initializeLazyObject()->zDeleteRangeByScore(...\func_get_args());
  956. }
  957. public function zInter($key, $keys, $weights = null, $aggregate = null)
  958. {
  959. return $this->initializeLazyObject()->zInter(...\func_get_args());
  960. }
  961. public function zRemove($key, $member, ...$other_members)
  962. {
  963. return $this->initializeLazyObject()->zRemove(...\func_get_args());
  964. }
  965. public function zRemoveRangeByScore($key, $min, $max)
  966. {
  967. return $this->initializeLazyObject()->zRemoveRangeByScore(...\func_get_args());
  968. }
  969. public function zReverseRange($key, $start, $end, $scores = null)
  970. {
  971. return $this->initializeLazyObject()->zReverseRange(...\func_get_args());
  972. }
  973. public function zSize($key)
  974. {
  975. return $this->initializeLazyObject()->zSize(...\func_get_args());
  976. }
  977. public function zUnion($key, $keys, $weights = null, $aggregate = null)
  978. {
  979. return $this->initializeLazyObject()->zUnion(...\func_get_args());
  980. }
  981. }