{"repo":"ymigval/laravel-model-cache","free":true,"listed":false,"github":"https://github.com/ymigval/laravel-model-cache","clone":"git clone https://github.com/ymigval/laravel-model-cache.git","description":"Laravel Model Cache is an efficient and easy-to-implement caching solution for Laravel Eloquent models. It provides automatic cache invalidation when models are created, updated, deleted, or restored.","language":"PHP","stars":79,"topics":["cache","caching","database-caching","eloquent","laravel","laravel-eloquent","laravel-package","memcached","model","orm"],"license":"MIT","category":"databases-storage","readme_excerpt":"Laravel Model Cache A simple and efficient caching solution for Laravel Eloquent models. Introduction Laravel Model Cache provides a powerful way to cache your Eloquent query results. It transparently integrates with Laravel's query builder system to automatically cache all query results, with zero changes to your existing query syntax. The package intelligently handles cache invalidation when models are created, updated, deleted, or restored. Features - Deep Integration : Replaces Laravel's query builder with a cache-aware version - Transparent Caching : All query methods ( get() , first() , etc.) automatically use cache - Explicit Control : Additional methods for when you want to be explicit about caching - Automatic Invalidation : Cache is cleared when models are created, updated, deleted, or restored - Full Tag Support : Works with Laravel's built-in cache tagging system - Performance Optimized : Dramatically reduces database queries for read-heavy applications - Drop-in Solution : Compatible with existing Laravel query builder syntax - Highly Configurable : Easy to customize cache duration, store, and behavior Requirements - PHP ^7.4, ^8.0, ^8.1, ^8.2, ^8.3 or ^8.4 - Laravel 8.x, 9.x, 10.x, 11.x, 12.x or 13.x Installation Install the package via Composer: Publish the Configuration File (optional) To customize the package configuration, publish the configuration file: This creates with the following customizable options: config/model-cache.php - cache duration : Default c","default_branch":null,"files":null,"tree":[],"storefront":"/r/ymigval","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ymigval/laravel-model-cache/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}