Download the PHP package sormagec/laravel-mongo-cacheable without Composer
On this page you can find all versions of the php package sormagec/laravel-mongo-cacheable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sormagec/laravel-mongo-cacheable
More information about sormagec/laravel-mongo-cacheable
Files in sormagec/laravel-mongo-cacheable
Package laravel-mongo-cacheable
Short Description Sormagec Mongo Cacheable is a granular, intuitive, and fluent caching system for eloquent mongodb models. Simple, but yet powerful, plug-n-play with no hassle.
License MIT
Informations about the package laravel-mongo-cacheable
Sormagec MongoDB Cacheable
Sormagec MongoDB Cacheable is a granular, intuitive, and fluent caching system for eloquent models. Simple, but yet powerful, plug-n-play with no hassle.
What this package do -technically- caching eloquent query passing through the get
method, whatever it is and it's smart enough to indicated any conditions, limit, offset, wheres, orders, groups, ..etc and take that criteria into account when caching and checking for cached version. Also by default any create, update, or delete event will flush all cache for that specific model. It uses default Laravel caching system, and utilizes whatever cache driver you are using. Awesome, right?
Installation & Usage
-
Install the package via composer:
-
Use the
\Sormagec\Cacheable\CacheableEloquent
in your desired model, and you're done! - Seriously, that's it!
Check the CacheableEloquent
source code for more awesome stuff if you need advanced control.
Optional Features
You can optionally override model caching behaviour per model as follows:
License
This software is released under The MIT License (MIT).
(c) 2016-2019 Rinvex LLC, Some rights reserved.
All versions of laravel-mongo-cacheable with dependencies
illuminate/cache Version ~5.6.0
illuminate/contracts Version ~5.6.0
illuminate/database Version ~5.6.0
jenssegers/mongodb Version ^3.0