dreamfactory/df-cache
DreamFactory cache package offering a simple caching layer for API services, with helpers to store, retrieve, and invalidate cached data. Integrates with Laravel-style workflows to reduce repeated backend calls and speed up responses.
Consider it when all of the following hold:
Look elsewhere when:
Cache facade and cache stores; this package adds platform plumbing, not cache capability.For executives (one paragraph): We can cut database load and API latency on our read-heavy endpoints without new engineering work by enabling the platform's built-in caching service. It is a configuration-level change, not a new system to operate—assuming we already run Redis or Memcached, which we should for any production API tier. The trade-off is freshness: we decide which endpoints can tolerate data that is seconds-to-minutes old. Recommended as a low-cost performance lever, scoped to a pilot on two or three high-traffic endpoints before broader rollout.
For engineering: This is DreamFactory's cache service for Platform 2.x—effectively a thin, platform-native integration over Laravel's cache layer. It gives us consistent, per-service cache configuration and lets us swap file/Redis/Memcached drivers by environment. It is a small, low-visibility component (single-digit stars, no downstream dependents), so treat it as internal infrastructure: pin the version, read the source before upgrades, and do not assume upstream will absorb our edge cases. Ask: confirm the driver target (Redis vs. Memcached), define key-namespace and TTL conventions up front, and add hit/miss instrumentation in our own middleware—because the package will not give us that for free. Sequencing: pilot one endpoint behind a feature flag, measure p95 latency and DB QPS delta, then expand.
How can I help you explore Laravel packages today?