oxhq/cachelet-core

Core cache orchestration runtime for the Cachelet package family.

Maintainers

Package info

github.com/oxhq/cachelet-core

Homepage

Issues

pkg:composer/oxhq/cachelet-core

Statistics

Installs: 9

Dependents: 5

Suggesters: 0

Stars: 0

v0.3.1 2026-05-15 04:25 UTC

This package is auto-updated.

Last update: 2026-05-15 04:25:51 UTC


README

Generic cache operations runtime for Laravel.

cachelet-core is the foundation of the Cachelet family: deterministic keys, TTL/SWR behavior, inspection, invalidation, telemetry, and sidecar maintenance without model, query, or request-specific integrations.

Install

composer require oxhq/cachelet-core

Best Fit

Use this package when the app already has its own caching layer and you want the Cachelet operating model around it:

  • stable coordinates
  • normalized payload keys
  • exact-key and prefix invalidation
  • onStore(...) routing
  • telemetry and intervention contracts
  • cachelet:list, cachelet:inspect, cachelet:flush, and cachelet:prune

Example

use Oxhq\Cachelet\Facades\Cachelet;

$report = Cachelet::for('reports.sales')
    ->from(['from' => '2026-01-01', 'to' => '2026-01-31'])
    ->onStore('redis')
    ->ttl('+30 minutes')
    ->remember(fn () => $service->salesReport());

Docs