avoutic / web-framework-redis
The Redis module for web-framework
dev-main
2025-03-29 15:44 UTC
Requires
- ext-redis: *
- avoutic/web-framework: ^8
- cache/redis-adapter: ^1.1
Requires (Dev)
- phpstan/phpstan: ^2.0
This package is auto-updated.
Last update: 2025-03-29 17:30:21 UTC
README
This module provides Redis caching integration for WebFramework.
Requirements
- PHP 8.2 or higher
- Redis server
- WebFramework 8.x
Installation
Install via Composer:
composer require avoutic/web-framework-redis
Configuration
If you are using the definition from definitions/defitinions.php. You can just add the following redis.php to your auth config directory (config/auth):
<?php return [ 'hostname' => 'localhost', 'port' => 6379, 'password' => 'your_password' ]
Features
- Redis-based caching implementation
- Support for cache tags
- Automatic instrumentation for performance tracking
- PSR-16 compliant cache interface
License
MIT License - see LICENSE file for details