original_string: public static function getCacheObject($cacheConfig = 'default')
      {
              //Check if the caller requests an new object
          if (empty(static::$instance[$cacheConfig])) {
              $config = Helper::getConfig('application', $cacheConfig);
  
              //Check if the object already be created
              if (isset($config["cache"][$cacheConfig])) {
                  static::$instance[$cacheConfig] = new $config["cache"][$cacheConfig]['class'];
              } else {
                  throw new \Exception("There is no cache config defined ({$cacheConfig})");
              }
          }
  
          return static::$instance[$cacheConfig];
  
      }
code: public static function getCacheObject($cacheConfig = 'default')
      {
              //Check if the caller requests an new object
          if (empty(static::$instance[$cacheConfig])) {
              $config = Helper::getConfig('application', $cacheConfig);
  
              //Check if the object already be created
              if (isset($config["cache"][$cacheConfig])) {
                  static::$instance[$cacheConfig] = new $config["cache"][$cacheConfig]['class'];
              } else {
                  throw new \Exception("There is no cache config defined ({$cacheConfig})");
              }
          }
  
          return static::$instance[$cacheConfig];
  
      }
code_tokens: public static function getCacheObject ( $ cacheConfig = 'default' ) { //Check if the caller requests an new object if ( empty ( static :: $ instance [ $ cacheConfig ] ) ) { $ config = Helper :: getConfig ( 'application' , $ cacheConfig ) ; //Check if the object already be created if ( isset ( $ config [ "cache" ] [ $ cacheConfig ] ) ) { static :: $ instance [ $ cacheConfig ] = new $ config [ "cache" ] [ $ cacheConfig ] [ 'class' ] ; } else { throw new \ Exception ( "There is no cache config defined ({$cacheConfig})" ) ; } } return static :: $ instance [ $ cacheConfig ] ; }
docstring: Get the cache instance
  
  @param string $cacheConfig
  @return object
docstring_tokens: Get the cache instance