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

Df Cache Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature-level: API response and data caching. If your product exposes APIs generated by DreamFactory (or a DreamFactory-style data-access layer), this package provides the cache service that lets you avoid re-querying the database on every request. That directly supports features like dashboard/list endpoints, reference-data lookups, and read-heavy GET routes where freshness tolerances are minutes, not milliseconds.
  • Roadmap: performance and cost-of-goods. Caching is the cheapest lever for reducing p95 latency and database load before you invest in read replicas, query optimization, or a CDN. Choosing this package is a roadmap decision to buy a pre-built cache service rather than build caching into each service endpoint.
  • Build vs. buy. This is a "buy/assemble" decision: the underlying capability (Laravel cache stores, Redis/Memcached, TTLs, invalidation) is commodity. The package's value is integration with the DreamFactory service model—cache configuration per service, per-environment, and consistent behavior across generated APIs. Building equivalent behavior means writing and maintaining cache middleware, key strategies, and invalidation hooks yourself.
  • Use cases it enables: (1) read-heavy API endpoints hitting expensive joins; (2) rate-limit and throttling counters backed by a fast store; (3) session/token lookup caching for auth-heavy APIs; (4) protecting a fragile upstream database during traffic spikes; (5) staging/production parity where cache drivers differ by environment.
  • Org-level: platform standardization. If you are standardizing on DreamFactory as your API layer, adopting its cache service keeps caching consistent across teams instead of each team inventing its own Redis wrapper.

When to Consider This Package

Consider it when all of the following hold:

  • You are running DreamFactory Platform 2.x and intend to stay on it for the foreseeable planning horizon.
  • You have (or will provision) a fast shared cache backend—Redis or Memcached—rather than relying on file caching in production.
  • Your read traffic dominates and you have endpoints with tolerable staleness (reference data, configuration, catalog listings, reporting aggregates).
  • You need per-service or per-environment cache configuration and want that behavior to come from the platform rather than custom middleware.
  • You are comfortable treating this as a vendored/internal component: pin the version, review the diff before upgrades, and own the operational runbook (eviction policy, key naming, invalidation triggers).

Look elsewhere when:

  • You are not on DreamFactory. In plain Laravel, use the framework's native Cache facade and cache stores; this package adds platform plumbing, not cache capability.
  • You are on DreamFactory 3.x or later, or migrating—confirm the caching story for the target version before building a dependency on a 2.0-era component.
  • Your data is strongly consistency-sensitive (balances, inventory counts, authorization decisions) and you cannot define a safe TTL or invalidation path.
  • You need a vendor with support SLAs. With a single-digit star count and no dependents, this is not a de-risked third-party dependency; the support model is "read the source."
  • You need cache observability (hit rates, key-level metrics, tracing) as a first-class feature—plan to add instrumentation yourself.

How to Pitch It (Stakeholders)

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.

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.
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
noith/settings