oxhq / cachelet-core
Core cache orchestration runtime for the Cachelet package family.
v0.3.1
2026-05-15 04:25 UTC
Requires
- php: ^8.2
- illuminate/cache: ^12.0|^13.0
- illuminate/support: ^12.0|^13.0
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, andcachelet: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());