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

Cache Laravel Package

psx/cache

A caching component for the PSX framework that provides a simple, consistent API for storing and retrieving cached data across different backends, helping PHP applications reduce repeated work and improve response times.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Cache abstraction and portability — informs whether to standardize application code on PSR-6/PSR-16 interfaces so business logic isn't coupled to a specific store.
  • Build vs. buy on caching plumbing — this package is a thin adapter, not an engine. The real question it answers is "do we hand-roll a PSR wrapper, or adopt one?" For most teams the answer is neither: use what the framework already ships.
  • Backend migration roadmap — because it delegates to Doctrine Cache drivers, moving file → Redis → Memcached is a configuration change, not a code change. That maps to roadmap items like "get query cache off local disk before Q3."
  • Feature-level caching for API surfaces — fits PSX-style REST workloads (response caching, per-endpoint TTLs), which overlaps with how we'd cache API responses in Laravel.
  • Dependency vetting for vendor integrations — a candidate whenever a third-party library demands a PSR-6/PSR-16 implementation as a contract.

The decision this should drive most often is a no-go outside the PSX ecosystem. Two stars and zero dependents mean it cannot be load-bearing in a commercial product without us accepting the maintenance tail ourselves.

When to Consider This Package

Consider it when:

  • You are already inside the PSX (apioo) framework and want its native cache layer rather than a second abstraction.
  • You need PSR-6 and PSR-16 from one package and you already depend on Doctrine Cache drivers, so the backing library is a sunk cost.
  • You are prototyping or building an internal tool where swapping the cache out later costs an afternoon, not a sprint.

Look elsewhere when:

  • You're on Laravel. Laravel ships a mature cache abstraction with Redis, database, file, Memcached, and DynamoDB drivers, plus tags, locks, and atomic operations. A parallel PSR implementation creates two cache worlds with two sets of TTL and stampede semantics to reason about during incidents.
  • You need PSR compliance only as glue. symfony/cache provides actively maintained PSR-6 and PSR-16 adapters across many backends.
  • The Doctrine dependency is disqualifying. doctrine/cache sits in maintenance/deprecation territory, with new Doctrine work steered toward symfony/cache. That makes this package's foundation a multi-year liability regardless of its own code quality.
  • You need production guarantees. No dependents, negligible stars, single-maintainer risk, and no evidence of stress testing, stampede protection, tag invalidation, or metrics hooks.
  • You need distributed cache features — namespacing, atomic increment, conditional writes, cluster awareness.

Adoption gate: acceptable only if the blast radius of ripping it out is roughly one afternoon and the dependency never sits on a customer-facing critical path.

How to Pitch It (Stakeholders)

For executives: This is a small open-source library that lets PHP code store and retrieve cached data through a standard interface, backed by several storage engines. It's free and permissively licensed (Apache-2.0). The problem is adoption: two GitHub stars, zero downstream packages, and it sits on Doctrine's caching component, which is itself on a deprecation path. My recommendation is not to introduce it into our Laravel platform. Laravel already provides a stronger, better-supported cache layer, and adopting this would give us two caching systems to operate, monitor, and debug — plus a maintenance tail we'd own ourselves. It is cheap to adopt today and potentially expensive to depend on in eighteen months.

For engineering: It's a thin PSR-6/PSR-16 shim over Doctrine Cache. The value is the interface, not the implementation — and the interfaces are already available to us. We have Illuminate\Contracts\Cache with better primitives (tags, locks, atomic counters) and a Redis driver that is actually maintained. If we need PSR-16 specifically because some third-party library type-hints it, use symfony/cache adapters or a purpose-built bridge rather than pulling in a repo with zero dependents. The one legitimate exception: if we adopt PSX for an API layer, let it bring its own cache adapter so we aren't fighting the framework's wiring.

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.
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
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource