marcoguidara / quick-laravel-responsecache
Grant response cache functionality to app models with minimal configuration.
Fund package maintenance!
marcoguidara
Requires
- php: ^7.4
- genealabs/laravel-pivot-events: *
- illuminate/contracts: ^8.37
- spatie/laravel-package-tools: ^1.4.3
- spatie/laravel-responsecache: ^6.6
Requires (Dev)
- brianium/paratest: ^6.2
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.15
- phpunit/phpunit: ^9.3
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^4.4
README
This package is still WIP and sperimental.
Installation
You can install the package via composer:
composer require marcoguidara/quick-laravel-responsecache
You can publish the config file with:
php artisan vendor:publish --provider="MarcoGuidara\QuickResponseCache\QuickResponseCacheServiceProvider"
This is the contents of the published config file:
return [ /* * Determine if the response cache should be enabled. */ 'enabled' => env('QUICK_RESPONSE_CACHE_ENABLED', true), /* * Default number of seconds responses must be cached. */ 'cache_lifetime_in_seconds' => env('QUICK_RESPONSE_CACHE_LIFETIME', 60 * 60 * 24 * 7), ];
Usage
Clearing cache
Manullay
QuickResponseCache::clear();
Using command
php artisan responsecache:clear
WIP
Testing
composer test
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
License
The MIT License (MIT). Please see License File for more information.