{"repo":"ghostcompiler/laravel-model-caching","free":true,"listed":false,"github":"https://github.com/ghostcompiler/laravel-model-caching","clone":"git clone https://github.com/ghostcompiler/laravel-model-caching.git","description":"High-performance Eloquent model caching for Laravel with automatic cache invalidation, relationship-aware caching, query caching, cache tags, and Redis support.","language":"PHP","stars":32,"topics":["laravel","laravel-caching","laravel-model-caching","backend","cache","cache-tags","caching","database","developer-tools","eloquent"],"license":"MIT","category":"databases-storage","readme_excerpt":"Laravel Model Caching Relationship-aware Eloquent model caching for Laravel. This package is designed for applications where cached parent queries must be invalidated when loaded child models change. It is not only a query cache. It stores deterministic query results and records a lightweight dependency index from model instances to cache keys. Features - Opt-in model caching through HasModelCaching - remember() , rememberForever() , dontCache() , and optional auto remember for trait-enabled models - Cached read operations: get , first , firstOrFail , find , findOrFail , and pagination methods - Nested eager-load aware cache keys - Pagination-safe keys for paginate() , simplePaginate() , and cursorPaginate() - Morph map versioning in cache keys - Dependency index for precise invalidation on child updates - Structured cache payloads for models and collections (safe for morph relations and eager loads) - Cache tags when the selected Laravel cache driver supports them - Model observer invalidation for saved, deleted, restored, and force deleted events - Artisan commands for warming, inspecting, and flushing tracked entries Installation Publish the config: Redis is recommended for production because the dependency index can use native Redis sets. Quick Start Add the trait to models that should be cacheable: The trait alone does not cache queries. Either call remember() on the chain or enable auto remember in config. Use remember() on normal Eloquent queries: Enable automatic cach","default_branch":null,"files":null,"tree":[],"storefront":"/r/ghostcompiler","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ghostcompiler/laravel-model-caching/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."}