Свойство | Type | Description | |
---|---|---|---|
$cache | Illuminate\Contracts\Cache\Repository | ||
$cacheIsTaggable | boolean | ||
$cacheKey | string | ||
$cacheManager | Illuminate\Contracts\Cache\Factory | ||
$enabled | boolean | ||
$view | Illuminate\Contracts\View\Factory |
Méthode | Description | |
---|---|---|
__construct ( Illuminate\Contracts\View\Factory $view, Illuminate\Contracts\Cache\Repository $cache, Illuminate\Contracts\Cache\Factory $cacheManager, Illuminate\Contracts\Config\Repository $config ) | ||
cache ( array $data, string $view, array $mergeData = null, integer $minutes = null, string $key = null, string | array $tag = null ) : string | Cache a view. If minutes are null, the view is cached forever. | |
flush ( string $tag = null ) | Empty all views linked to a tag or the complete partial cache. | |
forget ( string $view, string $key = null ) | Forget a rendered view. | |
getCacheKeyForView ( string $view, string $key = null ) : string | Create a key name for the cached view. |
Méthode | Description | |
---|---|---|
renderView ( string $view, array $data, array $mergeData ) : string | Render a view. |
public __construct ( Illuminate\Contracts\View\Factory $view, Illuminate\Contracts\Cache\Repository $cache, Illuminate\Contracts\Cache\Factory $cacheManager, Illuminate\Contracts\Config\Repository $config ) | ||
$view | Illuminate\Contracts\View\Factory | |
$cache | Illuminate\Contracts\Cache\Repository | |
$cacheManager | Illuminate\Contracts\Cache\Factory | |
$config | Illuminate\Contracts\Config\Repository |
protected Repository,Illuminate\Contracts\Cache $cache | ||
Résultat | Illuminate\Contracts\Cache\Repository |
protected Factory,Illuminate\Contracts\Cache $cacheManager | ||
Résultat | Illuminate\Contracts\Cache\Factory |