Download the PHP package varunazad/laravel-query-cache without Composer
On this page you can find all versions of the php package varunazad/laravel-query-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download varunazad/laravel-query-cache
More information about varunazad/laravel-query-cache
Files in varunazad/laravel-query-cache
Download varunazad/laravel-query-cache
More information about varunazad/laravel-query-cache
Files in varunazad/laravel-query-cache
Vendor varunazad
Package laravel-query-cache
Short Description Automatic query caching for Laravel with intelligent invalidation
License MIT
Package laravel-query-cache
Short Description Automatic query caching for Laravel with intelligent invalidation
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-query-cache
Laravel Query Cache ⚡
Blazing-fast query optimization for Laravel
✅ Supported Versions
- Laravel: 8.x, 9.x, 10.x
- PHP: 7.4+, 8.0+
🚀 Features
- ⚡ Automatic caching of Eloquent queries
- 💾 Configurable cache durations
- 📈 Tag-based cache invalidation
- 🔄 Support for all Laravel cache drivers
- 📊 Minimal configuration required
- 🔍 Works with existing Laravel applications
- 🧮 Query Cachin with pagination
🚀 Configuration-
Publish the configuration file:
php artisan vendor:publish --provider="VarunAzad\LaravelQueryCache\QueryCacheServiceProvider" --tag="config"
**This will create config/query-cache.php with the following options:**
return [
'default_ttl' => 3600, // Default cache time in seconds
'enabled' => env('QUERY_CACHE_ENABLED', true),
'prefix' => 'query_cache_',
'store' => env('QUERY_CACHE_STORE', null),
];
Basic Uses Caching Queries use Varunazad\QueryCache\Facades\QueryCache; in you controller / Cache a query for 60 minutes $users = User::cache(60)->where('active', true)->get();
// Use default cache time from config
$posts = Post::cache()->with('comments')->get();
Pagination query add this trait in the model use Varunazad\QueryCache\Traits\Cacheable; use Cacheable;
$users = User::with('wallet')->where('status',1)->withCachePaginate(2,60);
return response()->json($users);
📦 Installation
composer require varunazad/laravel-query-cache
---All versions of laravel-query-cache with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
illuminate/support Version ^8.0|^9.0|^10.0
illuminate/database Version ^8.0|^9.0|^10.0
illuminate/cache Version ^8.0|^9.0|^10.0
illuminate/support Version ^8.0|^9.0|^10.0
illuminate/database Version ^8.0|^9.0|^10.0
illuminate/cache Version ^8.0|^9.0|^10.0
The package varunazad/laravel-query-cache contains the following files
Loading the files please wait ...