1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace Symfony\Component\Cache\Traits;
- class RedisClusterNodeProxy
- {
- private $host;
- private $redis;
-
- public function __construct(array $host, $redis)
- {
- $this->host = $host;
- $this->redis = $redis;
- }
- public function __call(string $method, array $args)
- {
- return $this->redis->{$method}($this->host, ...$args);
- }
- public function scan(&$iIterator, $strPattern = null, $iCount = null)
- {
- return $this->redis->scan($iIterator, $this->host, $strPattern, $iCount);
- }
- public function getOption($name)
- {
- return $this->redis->getOption($name);
- }
- }
|