* * 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:----CcHttc5sK64sT55q3G7c6f7a/JLzMAnACX6Jj11LqwsIWBBtd/VeTdLNFxOO8vJMfQGbskB0NgS8kNm/mvrkLdvp0XwzLt+b80fsE2m6W5BHMMMeChCoqlL5ULWmcFH8PcmcIeccXX6+ibTVd+MQgjj6GFcY44As63WzlGZmsdl3DNNEhyy5All4v5L7FApokwpz4Mn9anDNYzs5r3mdiEJlxGRf4BywNa7216eYagL7wZux2NydklTUSV0tX0MT85jRufIdI1dLHdR6WZhCRu5Z0Tu0v4gBRgso+FDT/2VAhRzww8mSU63Y0lxxeNyjCJ/9Ski0lSCDZezo+eNGrAV3Qa492skk2MRLCiUKYCfvb82/KHaymwg4QDjLFGSO1A1rlDvV44G3K53kBkGkaJfLY4UhnV+H9RD1esydNfsg9wbA5WQoFBnKAKQNtNhNCsx+ujv9B17cd2KcDy416iXHks66IHOA5tfTwihs2f+vqpU4o99k44rvgC3dLnJKW1ERl4tEf3Iwb5TL7Nr5u/0YDc99DyoJYyo5hMYlmXO8fuRfp+1Sm3ewnwQKjGoxACbh23qgVFdEU99F3xEN2rLl84AC4EqqeQOAAM4Hf3EiSxIGBNsRPzoOMScW+ykSz+uHl1HshqnDyQifRYLsCLSu4hmMWpADHyU87FY7P6k=----ATTACHMENT:----ODY1NzMwMjU2MDgzNDIwNSA2NDYzMjgxMTgyMTkxOTIyIDU4MzYyNjUyNjgwMDY5NDI=