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: 0

Dependents: 5

Suggesters: 0

Stars: 0

v0.2.2 2026-04-24 23:35 UTC

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:prune maintenance commands
  • Typed cache lifecycle events
  • Canonical cachelet.coordinate.v1 and cachelet.telemetry.v1 projections

Example

use Oxhq\Cachelet\Facades\Cachelet;

$value = Cachelet::for('users.index')
    ->from(['page' => 1])
    ->onStore('redis')
    ->ttl(300)
    ->remember(fn () => User::paginate());