public function getCache(string $name='')
  {
    # Find the cache (if we already have it created)
    $cache = $this->findCache($name);

    if (\is_null($cache)) {
      # Attempt to create the cache
      $cache = $this->createCache($name);

      if (!\is_null($cache)) {
        $this->addCache($cache);
      }
    }

    return $cache;
  }
public function getCache(string $name='')
  {
    # Find the cache (if we already have it created)
    $cache = $this->findCache($name);

    if (\is_null($cache)) {
      # Attempt to create the cache
      $cache = $this->createCache($name);

      if (!\is_null($cache)) {
        $this->addCache($cache);
      }
    }

    return $cache;
  }
public function getCache ( string $ name = '' ) { # Find the cache (if we already have it created) $ cache = $ this -> findCache ( $ name ) ; if ( \ is_null ( $ cache ) ) { # Attempt to create the cache $ cache = $ this -> createCache ( $ name ) ; if ( ! \ is_null ( $ cache ) ) { $ this -> addCache ( $ cache ) ; } } return $ cache ; }
Get or Create a Cache

@param      string  $name   Name of the Cache (from Config)

@return     null | object
Get or Create a Cache