src/Helper.php
public static function getCache($cacheType = "default")
    {
        $context = getenv('ERDIKO_CONTEXT');
        $config = static::getConfig("application");
        
        if (isset($config["cache"][$cacheType])) {
            $cacheConfig = $config["cache"][$cacheType];
            $class = "erdiko\core\cache\\".$cacheConfig["type"];
            return new $class;
        } else {
            return false;
        }
    }
public static function getCache($cacheType = "default")
    {
        $context = getenv('ERDIKO_CONTEXT');
        $config = static::getConfig("application");
        
        if (isset($config["cache"][$cacheType])) {
            $cacheConfig = $config["cache"][$cacheType];
            $class = "erdiko\core\cache\\".$cacheConfig["type"];
            return new $class;
        } else {
            return false;
        }
    }
public static function getCache ( $ cacheType = "default" ) { $ context = getenv ( 'ERDIKO_CONTEXT' ) ; $ config = static :: getConfig ( "application" ) ; if ( isset ( $ config [ "cache" ] [ $ cacheType ] ) ) { $ cacheConfig = $ config [ "cache" ] [ $ cacheType ] ; $ class = "erdiko\core\cache\\" . $ cacheConfig [ "type" ] ; return new $ class ; } else { return false ; } }
Get the configured cache instance using name

@return cache $cache returns the instance of the cache type
Get the configured cache instance using name