Download the PHP package natsumework/laravel-cache-manager without Composer
On this page you can find all versions of the php package natsumework/laravel-cache-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download natsumework/laravel-cache-manager
More information about natsumework/laravel-cache-manager
Files in natsumework/laravel-cache-manager
Package laravel-cache-manager
Short Description Allows you to easily manage the cache with config file. And provide a simple solution to solve the cache penetration and hotspot invalid.
License MIT
Informations about the package laravel-cache-manager
Easily manage your cache for laravel
Allows you to easily manage the cache with config file. And provide a simple solution to solve the cache penetration and hotspot invalid.
Contents
- Installation
- Configuration
- General Configuration
- Hotspot Invalid Protection Configuration
- Penetrate Protection Configuration
- Types Configuration
- Usage
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
Install this package via composer:
Publish the configuration file to config/cache-manager.php
:
Configuration
config/cache-manager.php
General Configuration
Hotspot Invalid Protection Configuration
Penetrate Protection Configuration
Types Configuration
This configuration allows you to easily manage all caches here.
Notes
- Before you put item into the cache storage, you have to define the type first.
Usage
Retrieve & Store item
If the item does not exist in the cache, the Closure passed to the remember method will be executed and its result will be placed in the cache.
After the item is updated, use the Cache-Aside Pattern to invalid the item
The updated
method will remove item.
You can also use the forget
method to remove item.
Retrieve item
Storing Items In The Cache
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- natsumework
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-cache-manager with dependencies
illuminate/cache Version ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
illuminate/config Version ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
php Version ^7.3 || ^8.0