PHPackages                             grafite/query-cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. grafite/query-cache

ActiveLibrary[Database &amp; ORM](/categories/database)

grafite/query-cache
===================

A database query caching system with invalidation automation.

v1.3.0(2w ago)0317↓100%MITPHPPHP ^8.2CI passing

Since May 30Pushed 2w ago1 watchersCompare

[ Source](https://github.com/GrafiteInc/QueryCache)[ Packagist](https://packagist.org/packages/grafite/query-cache)[ RSS](/packages/grafite-query-cache/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (8)Versions (9)Used By (0)

[![Grafite Cache](GrafiteQueryCache-banner.png)](GrafiteQueryCache-banner.png)

**QueryCache** - A general query result caching system for Eloquent models.

[![Build Status](https://github.com/GrafiteInc/QueryCache/actions/workflows/php-package-tests.yml/badge.svg?branch=main)](https://github.com/GrafiteInc/QueryCache/actions/workflows/php-package-tests.yml)[![Maintainability](https://camo.githubusercontent.com/7f4fd49093fdf9247e887d9dac3a2c9ce6d75dacb75839ea47b9b9c9eb58fe7b/68747470733a2f2f716c74792e73682f6261646765732f36363738376161392d326266382d346435612d386665662d6631643233353131653738372f6d61696e7461696e6162696c6974792e737667)](https://qlty.sh/gh/GrafiteInc/projects/QueryCache)[![Packagist](https://camo.githubusercontent.com/a18d5cea073d330e3ea132cc0b83ce2b7702f099043a1efbee3bb30ff182b400/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f677261666974652f71756572792d63616368652e737667)](https://packagist.org/packages/grafite/query-cache)[![license](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://packagist.org/packages/grafite/query-cache)

QueryCache is a general query result caching system for Eloquent models. It's optimized to be as automated as possible, and can work with Redis and SQLite as caching.

##### Author(s):

[](#authors)

- [Matt Lantz](https://github.com/mlantz) ([@mattylantz](http://twitter.com/mattylantz), mattlantz at gmail dot com)

Requirements
------------

[](#requirements)

1. PHP 8.2+

Compatibility and Support
-------------------------

[](#compatibility-and-support)

Laravel VersionPackage TagSupported^11.x - ^12.x1.xyes### Installation

[](#installation)

Start a new Laravel project:

```
composer create-project laravel/laravel your-project-name
```

Then run the following to add Support

```
composer require "grafite/query-cache"
```

Documentation
-------------

[](#documentation)

License
-------

[](#license)

Support is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

### Bug Reporting and Feature Requests

[](#bug-reporting-and-feature-requests)

Please add as many details as possible regarding submission of issues and feature requests

### Disclaimer

[](#disclaimer)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance96

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~46 days

Recently: every ~69 days

Total

7

Last Release

18d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81d026d950739c978b844ac79e6b454e7fedc95ceffdcc4da09893c2497c7255?d=identicon)[mlantz](/maintainers/mlantz)

---

Top Contributors

[![mlantz](https://avatars.githubusercontent.com/u/1065551?v=4)](https://github.com/mlantz "mlantz (22 commits)")

---

Tags

laraveldatabaseeloquentcaching

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/grafite-query-cache/health.svg)

```
[![Health](https://phpackages.com/badges/grafite-query-cache/health.svg)](https://phpackages.com/packages/grafite-query-cache)
```

###  Alternatives

[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

590440.9k2](/packages/spiritix-lada-cache)[czim/laravel-filter

Filter for Laravel Eloquent queries, with support for modular filter building

8972.4k3](/packages/czim-laravel-filter)[matchory/elasticsearch

The missing elasticsearch ORM for Laravel!

3057.6k](/packages/matchory-elasticsearch)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
