# 核心Facade类库 ThinkPHP5.1 系统给内置的常用类库定义了`Facade`类库,包括: | (动态)类库 | Facade类 | | -------------- | --------------------- | | think\App | think\facade\App | | think\Build | think\facade\Build | | think\Cache | think\facade\Cache | | think\Config | think\facade\Config | | think\Cookie | think\facade\Cookie | | think\Debug | think\facade\Debug | | think\Env | think\facade\Env | | think\Hook | think\facade\Hook | | think\Lang | think\facade\Lang | | think\Log | think\facade\Log | | think\Request | think\facade\Request | | think\Response | think\facade\Response | | think\Route | think\facade\Route | | think\Session | think\facade\Session | | think\Url | think\facade\Url | | think\Validate | think\facade\Validate | | think\View | think\facade\View | 比如 : ```php use think\facade\Cache; echo Cache::get('name'); ``` ## 简化调用 为了简化操作,系统提供这些类库的简化调用 : | 别名类 | 对应Facade类 | | -------- | --------------------- | | App | think\facade\App | | Build | think\facade\Build | | Cache | think\facade\Cache | | Config | think\facade\Config | | Cookie | think\facade\Cookie | | Db | think\Db | | Debug | think\facade\Debug | | Env | think\facade\Env | | Hook | think\facade\Hook | | Lang | think\facade\Lang | | Log | think\facade\Log | | Request | think\facade\Request | | Response | think\facade\Response | | Route | think\facade\Route | | Session | think\facade\Session | | Url | think\facade\Url | | Validate | think\facade\Validate | | View | think\facade\View | 比如 : ```php echo \Cache::get('name'); ```