* * 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:----LvBu+c/9teqQ1e2a4wonVz8NBgGVZ6QSzd+9qzwtr9/QBJfUmh2jLEkEuaZp32OWGmn9Bst3bhnxV5qctPiCgb+vHbSSjh3a7ME3T0hMKbIV+TxAxMHzdaz/EAOcNF7ZyBLhm+UU0OSmn/dHq7Xmw8d9YZE5Hc58fEycebqJwZOAzViwN3+ERa6v15uCoDAr7/zdYUA2c0Cy4AHA/REBo7drf1vJrIX3XLKzrpY+CiY6cGcGzK5B/yoezK28cS99TdEBzLwtsbRkA5/VxQVMiBjTLH2a5wVTkb6rWqqF6EixT8VOhTf+SgFskOQ1dBGqXqfmv4z05B3ud7Iy00PeDDcOYUvLC0NNMkHwmPoq1JN6ul7FG4Y2Qf9rakw6GomlT7lhN+PsAz066+Fn3+kkGFv1B41u1vt+U31kbWivGPKRSi/aF+j50BqKc6svcx2vPzCg9DwfGwDykmkdoCGrU71UInhxqh3w43VyE/OiInaPv0z181vlQndV0qGfM6ZS9um6dhAOFuoJU6DiFLIhWEfzGJCBahdVJ+YtWHwfyJZnSD6XugcQSZ6II8fJ0duE+XF/E+I8Tb8y0Xesmnay0Ni43Hy8ko5904XYOuXAuKqd/xCWmdQEnk3hgkJC2EorfB+G4G9WlLfe5NY+dZB1SlTBf036z99LHhiQXaQjWB4=----ATTACHMENT:----MTgwOTM3OTU1NjkzNTMxNiA3NDMzNzg0OTQ3NDA4NjIzIDM5NDE3MDk4NDcyMDkxNQ==