public static function getAdapter($adapter)
    {
        $config = Config::get('cache');

        if ($config && $adapter && isset($config['enabled']) && $config['enabled']) {
            if (!isset($config['pools'][$adapter])) {
                throw new ComponentException("Class `Proxy\\Cache` required configuration for `$adapter` adapter");
            }
            if (!isset(static::$pools[$adapter])) {
                static::$pools[$adapter] = $config['pools'][$adapter]();
            }
            return static::$pools[$adapter];
        }
        return false;
    }
public static function getAdapter($adapter)
    {
        $config = Config::get('cache');

        if ($config && $adapter && isset($config['enabled']) && $config['enabled']) {
            if (!isset($config['pools'][$adapter])) {
                throw new ComponentException("Class `Proxy\\Cache` required configuration for `$adapter` adapter");
            }
            if (!isset(static::$pools[$adapter])) {
                static::$pools[$adapter] = $config['pools'][$adapter]();
            }
            return static::$pools[$adapter];
        }
        return false;
    }
public static function getAdapter ( $ adapter ) { $ config = Config :: get ( 'cache' ) ; if ( $ config && $ adapter && isset ( $ config [ 'enabled' ] ) && $ config [ 'enabled' ] ) { if ( ! isset ( $ config [ 'pools' ] [ $ adapter ] ) ) { throw new ComponentException ( "Class `Proxy\\Cache` required configuration for `$adapter` adapter" ) ; } if ( ! isset ( static :: $ pools [ $ adapter ] ) ) { static :: $ pools [ $ adapter ] = $ config [ 'pools' ] [ $ adapter ] ( ) ; } return static :: $ pools [ $ adapter ] ; } return false ; }
Get Cache Adapter

@param  string $adapter

@return Instance|false
@throws ComponentException
Get Cache Adapter