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];

    }
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];

    }
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 ] ; }
Get the cache instance

@param string $cacheConfig
@return object
Get the cache instance