PHPackages                             tool4/laravel-eloquent-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. [Caching](/categories/caching)
4. /
5. tool4/laravel-eloquent-query-cache

ActiveLibrary[Caching](/categories/caching)

tool4/laravel-eloquent-query-cache
==================================

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

01.3k↓50%[5 PRs](https://github.com/dungphanxuan84/laravel-eloquent-query-cache/pulls)PHP

Since May 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dungphanxuan84/laravel-eloquent-query-cache)[ Packagist](https://packagist.org/packages/tool4/laravel-eloquent-query-cache)[ RSS](/packages/tool4-laravel-eloquent-query-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

Laravel Eloquent Query Cache
============================

[](#laravel-eloquent-query-cache)

[![CI](https://github.com/renoki-co/laravel-eloquent-query-cache/workflows/CI/badge.svg?branch=master)](https://github.com/renoki-co/laravel-eloquent-query-cache/workflows/CI/badge.svg?branch=master)[![codecov](https://camo.githubusercontent.com/505015f6f44c92c40ca15d6b4e9212b5c990c1170ddde5d602fdca61817eea5f/68747470733a2f2f636f6465636f762e696f2f67682f72656e6f6b692d636f2f6c61726176656c2d656c6f7175656e742d71756572792d63616368652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/renoki-co/laravel-eloquent-query-cache/branch/master)[![StyleCI](https://camo.githubusercontent.com/b071c5c4b2a3e294317822791310e51b92f74092615d1a0a453ed3d162572cbd/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3232333233363738352f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/223236785)[![Latest Stable Version](https://camo.githubusercontent.com/5ce71f8a886c362ac4054395e2e843c24125dc0fcbda408aeae543f98fbcf621/68747470733a2f2f706f7365722e707567782e6f72672f72656e6e6f6b6b692f6c61726176656c2d656c6f7175656e742d71756572792d63616368652f762f737461626c65)](https://packagist.org/packages/rennokki/laravel-eloquent-query-cache)[![Total Downloads](https://camo.githubusercontent.com/3cab12e0126eb8086d041d127f720eb2adb968af06d384af83b909ca0494ab2a/68747470733a2f2f706f7365722e707567782e6f72672f72656e6e6f6b6b692f6c61726176656c2d656c6f7175656e742d71756572792d63616368652f646f776e6c6f616473)](https://packagist.org/packages/rennokki/laravel-eloquent-query-cache)[![Monthly Downloads](https://camo.githubusercontent.com/934bef0553e8a978b5bbb73427f36bfa329dcb4bcb9e81cfd90ec34b74a8df6e/68747470733a2f2f706f7365722e707567782e6f72672f72656e6e6f6b6b692f6c61726176656c2d656c6f7175656e742d71756572792d63616368652f642f6d6f6e74686c79)](https://packagist.org/packages/rennokki/laravel-eloquent-query-cache)[![License](https://camo.githubusercontent.com/e0ea2c4270347b555f60b5c8044aa8e5a11a470681ea74ed5b0f11a7ac1b95fd/68747470733a2f2f706f7365722e707567782e6f72672f72656e6e6f6b6b692f6c61726176656c2d656c6f7175656e742d71756572792d63616368652f6c6963656e7365)](https://packagist.org/packages/rennokki/laravel-eloquent-query-cache)

Laravel Eloquent Query Cache brings back the `remember()` functionality that has been removed from Laravel a long time ago. It adds caching functionalities directly on the Eloquent level, making use of cache within your database queries.

🤝 Supporting
------------

[](#-supporting)

**If you are using one or more Renoki Co. open-source packages in your production apps, in presentation demos, hobby projects, school projects or so, sponsor our work with [Github Sponsors](https://github.com/sponsors/rennokki). 📦**

[![](https://camo.githubusercontent.com/6b36c0d80ae5a97ff2d6378a494365f799f8daa2b0233bd70cad0fb9d0b4219a/68747470733a2f2f6769746875622d636f6e74656e742e73332e66722d7061722e7363772e636c6f75642f7374617469632f33372e6a7067)](https://github-content.renoki.org/github-repo/37)

📃 Documentation
---------------

[](#-documentation)

[The entire documentation is available on Gitbook 🌍](https://rennokki.gitbook.io/laravel-eloquent-query-cache/)

🐛 Testing
---------

[](#-testing)

```
vendor/bin/phpunit
```

🤝 Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

🔒 Security
----------

[](#--security)

If you discover any security related issues, please email  instead of using the issue tracker.

🎉 Credits
---------

[](#-credits)

- [Alex Renoki](https://github.com/rennokki)
- [All Contributors](../../contributors)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/43c64b60292d800ffac39451e9afc7200eea521096abbd3a56439ba51aebedd1?d=identicon)[dungphanxuan84](/maintainers/dungphanxuan84)

---

Top Contributors

[![vaix-dungpx](https://avatars.githubusercontent.com/u/114124789?v=4)](https://github.com/vaix-dungpx "vaix-dungpx (2 commits)")

### Embed Badge

![Health badge](/badges/tool4-laravel-eloquent-query-cache/health.svg)

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

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

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