Registry / database / rennokki-laravel-eloquent-query-cache

rennokki-laravel-eloquent-query-cache

JSON →
library3.6.1phppackagistunverified

Adding cache on your Laravel Eloquent queries' results is now a breeze.

composer require rennokki/laravel-eloquent-query-cache
INSTALL
IMPORT
SIG · RENNOKKI-LARAVEL-E
R
rennokki-laravel-eloquent-query-cache
databasephpv3.6.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

QueryCacheable
use Rennokki\QueryCache\Traits\QueryCacheable;

Add caching to Eloquent queries by using the QueryCacheable trait.

use Rennokki\QueryCache\Traits\QueryCacheable; class User extends Model { use QueryCacheable; protected $cacheFor = 3600; // 1 hour } $users = User::cache()->get();
Debug
Known issues
breakingRequires Laravel 5.6 or higher; not compatible with older versions.
fix
Upgrade Laravel to version 5.6 or later.
affects: <3.0
Upgrade
Version history
3.6.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
9
Meta
1
Amazon
1
Resources
rennokki-laravel-eloquent-query-cache — pip install rennokki-laravel-eloquent-query-cache · libregistry