thewebsolver / cache
A simple and elegant wrapper for Symfony Cache
dev-main
2024-08-06 07:59 UTC
Requires
- php: >=8.2.0
- psr/container: ^2.0
- symfony/cache: ^7.1
Requires (Dev)
- phpunit/phpunit: ^9.6
This package is auto-updated.
Last update: 2025-01-06 08:52:49 UTC
README
A simple, straight-forward Facade for Symfony Cache.
This package aims to provide a better Developer Experience (DX) to interact with various Cache Adapters required by a PHP Project. Powered by Symfony Cache, this library provides support for Stampede Prevention out of the Box by opting to use Symfony Cache Contracts instead of PSR-6 Cache Interface.
Benefits
- Aims to provide easier (with dead-simple API) and Type-safe (more secure and robust) application design.
- Exposes various methods:
- for registering Adapters in the PHP project Bootstrap file, and
- to use those registered Adapters flawlessly from within Middlewares (or anywhere it seems fit).
- Supports Dependency Injection with your own App Container (that implements PSR-11 Container Interface).
Usage
For usage details, visit Wiki page.