Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Rememberable Laravel Package

laravel-enso/rememberable

Laravel Enso Rememberable adds transparent query caching to Eloquent models via a trait. Cache results with optional tags and automatically invalidate them when models are created, updated, or deleted, reducing database load with minimal code changes.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Performance roadmap deferral. Model-level query caching is the cheapest lever to cut read load on dashboards, list screens, and reporting views. Shipping it lets you postpone spend on read replicas, larger DB instances, or a Redis cluster by one or more quarters.
  • Build vs. buy for a caching layer. This package is a thin set of Eloquent traits over Laravel’s cache and model events — meaning the honest comparison isn’t “buy vs. build from scratch,” it’s “adopt 200 lines of someone else’s invalidation logic vs. write and own our own.” That is a scoping decision, not a procurement decision.
  • Feature feasibility. Certain features (aggregate counters, permission/entitlement lookups on every request, catalog or pricing reads) are only viable at current traffic if their queries are cached. This package is an enabler for those roadmap items rather than a feature itself.
  • Standardization of caching conventions. Adopting a trait-based pattern forces a team-wide decision about where caching lives (model layer vs. repository vs. service), which is a genuine architectural commitment that is expensive to reverse later.
  • Risk acceptance for a low-adoption dependency. With ~28 stars and a single-maintainer ecosystem, approving this is a decision to accept unmaintained-dependency risk in exchange for a small time saving — appropriate for internal tooling, inappropriate for a revenue-critical path.

When to Consider This Package

Adopt when most of the following hold:

  • You are already inside the Laravel Enso ecosystem — the package assumes Enso conventions, and its value is highest when it slots into an existing Enso codebase without translation work.
  • You need read-heavy caching on Eloquent models quickly, on an internal or admin-facing surface where a stale-cache window of seconds is tolerable.
  • Your team is small and would otherwise not build caching at all this quarter; a working trait beats a deferred in-house project.
  • The models you intend to cache are simple: mostly single-table reads, few relationships, no significant bulk-update or raw-SQL write paths.

Look elsewhere — or build in-house — when:

  • Invalidation correctness is load-bearing. Cache coherence under bulk updates, upsert, queue-driven writes, and transactions crossing model boundaries is the hard part of this problem. Verify the package handles your write paths before committing; this is the single largest evaluation risk.
  • You are not on Enso. The integration savings evaporate, and you inherit conventions you didn’t choose.
  • You need active maintenance guarantees — long-term support, prompt Laravel major-version bump releases, security response. Low star count is a proxy for thin community testing, not proof of poor code, but it does mean you are effectively the QA department.
  • Your needs are cache-tagging, per-user cache segmentation, or multi-store strategies beyond straightforward model-result caching; you will likely outgrow the abstraction quickly.
  • Your platform roadmap includes moving off PHP/Laravel or consolidating caching at the edge/service layer — a model-level abstraction becomes migration debt.

How to Pitch It (Stakeholders)

To executives: This is a small, free (MIT-licensed) open-source component that lets us cache database reads inside our application with minimal engineering time. The business case is latency and infrastructure cost: it reduces load on the primary database and lets us ship read-heavy screens — dashboards, reports, admin lists — without buying additional database capacity this quarter. The trade-off is a minor dependency risk: the project is small and community adoption is thin, so we should treat it as a tactical acceleration, not a platform foundation. Expected effort is days, not weeks; expected reversal cost is low if we scope it to internal surfaces first.

To engineering: This is a trait-based model caching helper for Laravel, from the Enso ecosystem. Integration cost is genuinely low — you add a trait and get cached query results with event-driven invalidation. Two things to interrogate before we merge it: (1) how it behaves under our actual write paths — bulk updates, queued jobs, and multi-model transactions are where cache invalidation breaks, and that is where we should spend our review time; (2) whether we are comfortable owning a lightly maintained dependency. My recommendation is to pilot on one or two non-critical, read-heavy models, instrument cache hit rate and staleness, and only then decide whether to expand or replace it with a small in-house trait we control. Do not put it in front of anything where a stale read has a financial or compliance consequence.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console