Download the PHP package authentik/eloquent-cache without Composer
On this page you can find all versions of the php package authentik/eloquent-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package eloquent-cache
Eloquent Cache
Easily cache your Laravel's Eloquent models.
Requirements
-
PHP >= 7.2
- Laravel 6 / 7 / 8
Installation
Install via composer :
composer require authentik/eloquent-cache
How it works
-
When Eloquent fetches models, the JSON representations of the model instances are cached.
- Subsequently, when eloquent fetches a model by ID, the cached JSON will be converted back into an instance.
Usage
Use the Cacheable
trait in the models you want to cache.
To manually cache a model instance, use the
cache
method.To invalidate the cache for a model instance, use the
refresh
orflush
method.To invalidate the cache for all instances of a model, use the
flush
method.
Changelog
Click Here
All versions of eloquent-cache with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
illuminate/cache Version ^6.0 || ^7.0 || ^8.0 || ^9.0
illuminate/database Version ^6.0 || ^7.0 || ^8.0 || ^9.0
illuminate/support Version ^6.0 || ^7.0 || ^8.0 || ^9.0
illuminate/cache Version ^6.0 || ^7.0 || ^8.0 || ^9.0
illuminate/database Version ^6.0 || ^7.0 || ^8.0 || ^9.0
illuminate/support Version ^6.0 || ^7.0 || ^8.0 || ^9.0
The package authentik/eloquent-cache contains the following files
Loading the files please wait ....