public static function get_class_for_mode($mode) {
        switch ($mode) {
            case cache_store::MODE_APPLICATION :
                return 'cache_application';
            case cache_store::MODE_REQUEST :
                return 'cache_request';
            case cache_store::MODE_SESSION :
                return 'cache_session';
        }
        throw new coding_exception('Unknown cache mode passed. Must be one of cache_store::MODE_*');
    }
public static function get_class_for_mode($mode) {
        switch ($mode) {
            case cache_store::MODE_APPLICATION :
                return 'cache_application';
            case cache_store::MODE_REQUEST :
                return 'cache_request';
            case cache_store::MODE_SESSION :
                return 'cache_session';
        }
        throw new coding_exception('Unknown cache mode passed. Must be one of cache_store::MODE_*');
    }
public static function get_class_for_mode ( $ mode ) { switch ( $ mode ) { case cache_store :: MODE_APPLICATION : return 'cache_application' ; case cache_store :: MODE_REQUEST : return 'cache_request' ; case cache_store :: MODE_SESSION : return 'cache_session' ; } throw new coding_exception ( 'Unknown cache mode passed. Must be one of cache_store::MODE_*' ) ; }
Returns the class for use as a cache loader for the given mode.

@param int $mode One of cache_store::MODE_
@return string
@throws coding_exception
Returns the class for use as a cache loader for the given mode .