RelayCluster11Trait.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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\Relay;
  11. if (version_compare(phpversion('relay'), '0.11.0', '>=')) {
  12. /**
  13. * @internal
  14. */
  15. trait RelayCluster11Trait
  16. {
  17. public function flushSlotCache(): bool
  18. {
  19. return $this->initializeLazyObject()->flushSlotCache(...\func_get_args());
  20. }
  21. public function fullscan($match = null, $count = 0, $type = null): \Generator|false
  22. {
  23. return $this->initializeLazyObject()->fullscan(...\func_get_args());
  24. }
  25. public function getdel($key): mixed
  26. {
  27. return $this->initializeLazyObject()->getdel(...\func_get_args());
  28. }
  29. public function hexpire($hash, $ttl, $fields, $mode = null): \Relay\Cluster|array|false
  30. {
  31. return $this->initializeLazyObject()->hexpire(...\func_get_args());
  32. }
  33. public function hexpireat($hash, $ttl, $fields, $mode = null): \Relay\Cluster|array|false
  34. {
  35. return $this->initializeLazyObject()->hexpireat(...\func_get_args());
  36. }
  37. public function hexpiretime($hash, $fields): \Relay\Cluster|array|false
  38. {
  39. return $this->initializeLazyObject()->hexpiretime(...\func_get_args());
  40. }
  41. public function hpersist($hash, $fields): \Relay\Cluster|array|false
  42. {
  43. return $this->initializeLazyObject()->hpersist(...\func_get_args());
  44. }
  45. public function hpexpire($hash, $ttl, $fields, $mode = null): \Relay\Cluster|array|false
  46. {
  47. return $this->initializeLazyObject()->hpexpire(...\func_get_args());
  48. }
  49. public function hpexpireat($hash, $ttl, $fields, $mode = null): \Relay\Cluster|array|false
  50. {
  51. return $this->initializeLazyObject()->hpexpireat(...\func_get_args());
  52. }
  53. public function hpexpiretime($hash, $fields): \Relay\Cluster|array|false
  54. {
  55. return $this->initializeLazyObject()->hpexpiretime(...\func_get_args());
  56. }
  57. public function hpttl($hash, $fields): \Relay\Cluster|array|false
  58. {
  59. return $this->initializeLazyObject()->hpttl(...\func_get_args());
  60. }
  61. public function httl($hash, $fields): \Relay\Cluster|array|false
  62. {
  63. return $this->initializeLazyObject()->httl(...\func_get_args());
  64. }
  65. }
  66. } else {
  67. /**
  68. * @internal
  69. */
  70. trait RelayCluster11Trait
  71. {
  72. }
  73. }