# dwightwatson/rememberable

Query caching for Laravel

Repository: https://github.com/dwightwatson/rememberable
Canonical: https://ross.abutalabs.com/products/rememberable
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, php, eloquent, caching
Last push: 2026-03-20T10:01:18+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 73, release rhythm 35, longevity 100
- inputs: {"age_days": 4196, "days_push": 166, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1126, forks 93 (observed 2026-08-28T04:03:41.340300+00:00)

## What it is
Rememberable is a PHP trait for Laravel's Eloquent ORM that adds a remember() method for caching database query results. It stores query results in Laravel's cache store for a configurable duration, avoiding repeated database hits.

## Use cases
- cache eloquent query results in laravel
- reduce database load by caching queries
- remember query results for a set time
- speed up laravel app with query caching
- cache relationship queries in eloquent

## When to choose
- you use Laravel Eloquent and want simple per-query caching
- you want to cache expensive queries with minimal code changes
- you need adjustable cache TTLs per query

## When to avoid
- you don't use Laravel or Eloquent
- you need automatic cache invalidation on data changes
- you need caching outside the database query layer

## Facets
- artifact type: library
- maturity: active
- function: caching, orm, database
- domain: web-development, databases, backend
- platform: php
- tags: eloquent, query-cache, laravel-package, composer, laravel

## Member repositories
- dwightwatson/rememberable (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:41.340300+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:39:11.837131+00:00, confidence not recorded.
  - readme: https://github.com/dwightwatson/rememberable (fetched 2026-08-28T04:03:41.340300+00:00, sha 0e459b6d47bc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
