oxhq / cachelet-core
Core cache orchestration runtime for the Cachelet package family.
v0.2.2
2026-04-24 23:35 UTC
Requires
- php: ^8.2
- illuminate/cache: ^12.0|^13.0
- illuminate/support: ^12.0|^13.0
This package is auto-updated.
Last update: 2026-04-25 09:51:09 UTC
README
Read-only split of the Cachelet monorepo package at packages/cachelet-core.
Core cache orchestration runtime for Laravel.
Install
composer require oxhq/cachelet-core
Features
- Deterministic cache keys from normalized payloads
- TTL and stale-while-revalidate helpers
- Exact-key and prefix invalidation
- Explicit
onStore(...)cache-store selection - Registry inspection and
cachelet:prunemaintenance commands - Typed cache lifecycle events
- Canonical
cachelet.coordinate.v1andcachelet.telemetry.v1projections
Example
use Oxhq\Cachelet\Facades\Cachelet; $value = Cachelet::for('users.index') ->from(['page' => 1]) ->onStore('redis') ->ttl(300) ->remember(fn () => User::paginate());