original_string: 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];
      }
code: 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];
      }
code_tokens: 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 ] ; }
docstring: Build and return a zend cache storage using OSF cache configuration
  @staticvar array $storages
  @param string $namespace
  @return \Zend\Cache\Storage\Adapter\Redis
docstring_tokens: Build and return a zend cache storage using OSF cache configuration