Download the PHP package craftcms/laravel-dependency-aware-cache without Composer
On this page you can find all versions of the php package craftcms/laravel-dependency-aware-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download craftcms/laravel-dependency-aware-cache
More information about craftcms/laravel-dependency-aware-cache
Files in craftcms/laravel-dependency-aware-cache
Package laravel-dependency-aware-cache
Short Description A dependency aware cache repository for Laravel
License BSD-3-Clause
Homepage https://github.com/craftcms/laravel-dependency-aware-cache
Informations about the package laravel-dependency-aware-cache
Dependency-aware cache for Laravel
An implementation of Yii's cache with dependencies for Laravel
Installation
You can install the package via composer:
Usage
The dependency aware repository is hooked up automatically and will be returned when using the Cache Facade.
This package also provides a \CraftCms\DependencyAwareCache\Facades\DependencyCache Facade which extends the default Cache Facade but provides updated docblocks.
Invalidation
When using the cache, you can specify a dependency that may trigger cache invalidation. Below is an example using the tag dependency:
Other dependencies:
CallbackDependency- invalidates when the result of a callback changes.FileDependency- invalidates the cache based on file modification time.-
ValueDependency- invalidates the cache when specified value changes. - You may combine multiple dependencies using
AnyDependencyorAllDependencies.
You can implement your own dependency by extending Dependency.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Pixel & Tonic
- Yii Software
- All Contributors
License
Please see License File for more information.
All versions of laravel-dependency-aware-cache with dependencies
illuminate/contracts Version ^12.0||^13.0
illuminate/cache Version ^12.0|^13.0