public function getZendStorage(string $namespace = 'default')
    {
        static $storages = [];
        
        if (!isset($storages[$namespace])) {
            $rrm = new RedisResourceManager();
            $rrm->setResource('default', $this->getRedis());
            $rrm->setLibOption('default', Redis::OPT_SERIALIZER, $this->redis->getOption(Redis::OPT_SERIALIZER));
            $options = new RedisOptions();
            $options->setResourceManager($rrm);
            $storages[$namespace] = new RedisAdapter($options);
        }
        return $storages[$namespace];
    }
public function getZendStorage(string $namespace = 'default')
    {
        static $storages = [];
        
        if (!isset($storages[$namespace])) {
            $rrm = new RedisResourceManager();
            $rrm->setResource('default', $this->getRedis());
            $rrm->setLibOption('default', Redis::OPT_SERIALIZER, $this->redis->getOption(Redis::OPT_SERIALIZER));
            $options = new RedisOptions();
            $options->setResourceManager($rrm);
            $storages[$namespace] = new RedisAdapter($options);
        }
        return $storages[$namespace];
    }
public function getZendStorage ( string $ namespace = 'default' ) { static $ storages = [ ] ; if ( ! isset ( $ storages [ $ namespace ] ) ) { $ rrm = new RedisResourceManager ( ) ; $ rrm -> setResource ( 'default' , $ this -> getRedis ( ) ) ; $ rrm -> setLibOption ( 'default' , Redis :: OPT_SERIALIZER , $ this -> redis -> getOption ( Redis :: OPT_SERIALIZER ) ) ; $ options = new RedisOptions ( ) ; $ options -> setResourceManager ( $ rrm ) ; $ storages [ $ namespace ] = new RedisAdapter ( $ options ) ; } return $ storages [ $ namespace ] ; }
Build and return a zend cache storage using OSF cache configuration
@staticvar array $storages
@param string $namespace
@return \Zend\Cache\Storage\Adapter\Redis
Build and return a zend cache storage using OSF cache configuration