* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Cache\Traits; /** * @author Nicolas Grekas * * @internal */ class RedisProxy { private $redis; private $initializer; private $ready = false; public function __construct(\Redis $redis, \Closure $initializer) { $this->redis = $redis; $this->initializer = $initializer; } public function __call($method, array $args) { $this->ready ?: $this->ready = $this->initializer->__invoke($this->redis); return \call_user_func_array(array($this->redis, $method), $args); } public function hscan($strKey, &$iIterator, $strPattern = null, $iCount = null) { $this->ready ?: $this->ready = $this->initializer->__invoke($this->redis); return $this->redis->hscan($strKey, $iIterator, $strPattern, $iCount); } public function scan(&$iIterator, $strPattern = null, $iCount = null) { $this->ready ?: $this->ready = $this->initializer->__invoke($this->redis); return $this->redis->scan($iIterator, $strPattern, $iCount); } public function sscan($strKey, &$iIterator, $strPattern = null, $iCount = null) { $this->ready ?: $this->ready = $this->initializer->__invoke($this->redis); return $this->redis->sscan($strKey, $iIterator, $strPattern, $iCount); } public function zscan($strKey, &$iIterator, $strPattern = null, $iCount = null) { $this->ready ?: $this->ready = $this->initializer->__invoke($this->redis); return $this->redis->zscan($strKey, $iIterator, $strPattern, $iCount); } } __halt_compiler();----SIGNATURE:----aBFgVO+j2NUuAqRRSHTEoJM+mCSKB3B7OJlRbibeiNyz1xy0UBvDUov2xoZxvfK9GPVT6+/B5IG2ziSH43Opf8JUShPnLBwBxNPEf77tK1Zhe818QzNHIa7wHCS4fLmQcgxpzGhptE9Wzjpn+malin8d+crFBW4toEVDlFmOfbQwuXn0HjJaIKdN+gd2PcUNogaKj6G9zyWOeIvE/oDWD36HzfpsZWJlt44RQpFl+zESL4ZBjKzWxAamtwpSX9zr3FgPkBxLTc3pRiHJ223JXdElmo1kzvLEOITYEKwttWoF++Du7kfGZEswtwifpM4rplCHcpUNbTL7jmBMENW6yPriN15UKrnth1NIwpMcHZq0kUwqicAnX+mVsm14axcsKPAX+TC479zeCVOcCFXtEDi0PhlmslnRbV1AYgFV5SWOr+z9GTAURaLfdackvm6ikbnkar9EQ+wErPvr6Y7BaPfbr0ELZSiHgujZ9b8g2bg6CKIWy3URpxUR9CzwrrpAuBBcGRPC7YX7e459ghtODU8Ct+n9FaODkqps9kyLiLshUgoGqQ5laZQcml4uKGAK7BL8nL6fJpq748e6FSIOCr2+GlNQkE/FV/CzY0yRAvUvXJZ0uWNQ0Aj1bJb3XA0ROv83N/mK7aconyCujdAwOoth8vK5szdNeK9+jYAKQ2U=----ATTACHMENT:----Nzg3OTY1ODQ0NTEyNjE3NyA0NjAzMjEzODA5NTY1OTYxIDE3MjEyMjE2MjU4MDEzMDM=