Annonce
astral-cache 0.1.0 — cache opt-in multi-drivers
Publié le 2026-10-29
Premier lot feuille 2.0 : array, file, Redis, Memcache, adaptateur Core. PHP 8.3+, core ^2.
Le package astral-cache 0.1.0 ouvre la feuille 2.x côté composants : un cache opt-in, hors du core, pour les apps qui en ont besoin.
Drivers
- array — mémoire processus (tests / éphémère)
- file — défaut install simple
-
redis —
ext-redis; purge = SCAN préfixe (jamais FLUSHDB) -
memcache —
ext-memcache(Laragon) ouext-memcached; purge = génération -
core — adaptateur
Core\Cachepour migration progressive
Sémantique
Alignée sur astral-core 2.0 Cache : hit-null, TTL secondes ≥ 1, pas d’objets, remember() best-effort.
composer require astral-php/astral-cache
Provider optionnel : Astral\Cache\CacheServiceProvider · stub .env dans le package.
Suite feuille 2.0
- ~~astral-cache~~ ✅
- astral-starter 2.0
- astral-forum
- astral-twide (opt-in externe)
- astral-core 2.1
Liens
- Packagist : astral-php/astral-cache 0.1.0
- GitHub : astral-php/astral-cache
- Site : astral-php.dev