PHPackages                             oxhq/cachelet-query - 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. oxhq/cachelet-query

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

oxhq/cachelet-query
===================

Query builder integration for Cachelet.

v0.3.1(2mo ago)041MITPHP ^8.2

Since Apr 21Compare

[ Source](https://github.com/oxhq/cachelet-query)[ Packagist](https://packagist.org/packages/oxhq/cachelet-query)[ Docs](https://github.com/oxhq/cachelet)[ RSS](/packages/oxhq-cachelet-query/feed)WikiDiscussions Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (7)Used By (1)

cachelet-query
==============

[](#cachelet-query)

Query builder and Eloquent result caching with Cachelet coordinates.

`cachelet-query` makes repeated query results inspectable by table, connection, SQL, bindings, pagination inputs, store, prefix, and scope.

Install
-------

[](#install)

```
composer require oxhq/cachelet-query
```

Best Fit
--------

[](#best-fit)

Use this package when expensive query results are repeated and the invalidation boundary can be expressed by table, family prefix, tag, or explicit scope.

It provides:

- `cachelet()` macros on query builders
- `rememberWithCachelet()` convenience macro
- SQL, binding, connection, and pagination-aware coordinates
- explicit `scope(...)` support
- canonical `module = query` coordinates and telemetry

Example
-------

[](#example)

```
$results = User::query()
    ->where('role', 'admin')
    ->cachelet()
    ->ttl(300)
    ->rememberQuery();
```

Contract
--------

[](#contract)

`cachelet-query` guarantees explicit invalidation by query-table prefix and tags. It does not claim automatic relational invalidation for arbitrary query graphs in `0.2.x`.

Docs
----

[](#docs)

- [`../../docs/operations.md`](../../docs/operations.md)
- [`../../docs/comparison.md`](../../docs/comparison.md)
- [`../../docs/migration.md`](../../docs/migration.md)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance86

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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 ~4 days

Total

6

Last Release

71d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a1e66a354a710e1b8f3254cb843ed74159bb261809a3deaccfff898bfcbdee7a?d=identicon)[garaekz](/maintainers/garaekz)

---

Top Contributors

[![garaekz](https://avatars.githubusercontent.com/u/14919842?v=4)](https://github.com/garaekz "garaekz (5 commits)")

---

Tags

laraveleloquentcacheswrinvalidationQuery Cache

### Embed Badge

![Health badge](/badges/oxhq-cachelet-query/health.svg)

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

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M98](/packages/mongodb-laravel-mongodb)[prettus/l5-repository

Laravel 8|9|10|11|12|13 - Repositories to the database layer

4.3k11.3M157](/packages/prettus-l5-repository)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[spiritix/lada-cache

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

592456.3k2](/packages/spiritix-lada-cache)[kirkbushell/eloquence

A set of extensions adding additional functionality and consistency to Laravel's awesome Eloquent library.

5751.0M1](/packages/kirkbushell-eloquence)[ymigval/laravel-model-cache

Laravel package for caching Eloquent model queries

7962.6k4](/packages/ymigval-laravel-model-cache)

PHPackages © 2026

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