
▲ 15 r/PHP
NCache v1.0.0 — a multi-driver caching library for PHP 8.1+
I’ve released the first stable version of NCache, an open-source caching library I’ve been building for PHP.
It provides a unified API across JSON, PHP Array, serialized PHP, SQLite, Redis and Memcached, with PSR-6 and PSR-16 adapters.
It also includes TTL management, isolated profiles/namespaces, cache tags with lazy invalidation, signatures, callable values, atomic file writes and a transactional registry.
The project is tested on PHP 8.1–8.5 with PHPUnit, PHPStan level 9 and PHP-CS-Fixer through GitHub Actions.
I’d particularly appreciate feedback on the API design, cache invalidation model and overall architecture.
GitHub: github.com/Noga-ng/NCache
Install: composer require noga-ng/ncache
u/Cultural-Yard-1598 — 3 days ago