PSR-16 Simple Cache Generator
Generates high-performance, PSR-16 compliant PHP 8.4 caching implementations including Redis and Array-based adapters.
This skill automates the creation of standardized PSR-16 Simple Cache implementations for modern PHP 8.4 applications. It provides ready-to-use templates for both memory-based Array caching and persistent Redis storage, ensuring strict adherence to PHP-FIG standards. By handling complex TTL calculations, key validation, and exception handling, it helps developers implement efficient caching layers quickly, reducing boilerplate while maintaining clean architecture principles within DDD or Hexagonal systems.
主な機能
01Automated TTL handling for integers and DateInterval objects
0245 GitHub stars
03Standardized PSR-16 CacheInterface implementation
04Pre-configured exception classes and key validation logic
05Ready-to-use Redis and Array-based cache adapters
06PHP 8.4 optimized code with readonly classes and strict typing
ユースケース
01Adding a standardized caching layer to legacy PHP applications
02Implementing performance-critical key-value storage in PHP microservices
03Quickly bootstrapping Redis integration for high-traffic API endpoints