Download the PHP package tourze/symfony-aop-cache-bundle without Composer
On this page you can find all versions of the php package tourze/symfony-aop-cache-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package symfony-aop-cache-bundle
AopCacheBundle
AopCacheBundle is a Symfony bundle that provides advanced, annotation-driven caching capabilities using AOP (Aspect-Oriented Programming). It enables developers to add cache logic to methods declaratively, supporting cache tags, TTL, custom keys, and forced cache refresh.
Features
- Annotation-based declarative cache (
#[Cacheble]
,#[CachePut]
) - Custom cache key with Twig syntax
- Cache tags for batch management and cleaning
- TTL (expiration) control
- Forced cache refresh support
- Extensible aspects and cache logic
Installation
- Requires PHP >= 8.1
- Requires Symfony >= 6.4
- Requires Redis extension
Quick Start
-
Add
#[Cacheble]
annotation to your method: -
Use custom cache key and tags:
-
Force cache refresh:
- Cache key template:
- Access parameters:
{{ paramName }}
- Access join point info:
{{ joinPoint.method }}
,{{ joinPoint.class }}
- Supports all Twig syntax
- Access parameters:
Documentation
- Support batch cache cleaning by tag (
cache:redis-clear-tags
command) - Do not cache resource types, callbacks, or entity objects; cache simple types or arrays
- Custom aspects and cache logic supported (extend
CacheTrait
,CachebleAspect
,CachePutAspect
)
Contributing
- Ensure code passes tests before submitting issues or PRs
- Follow PSR-12 coding style
- Read core class docs and comments first
License
- MIT License
- (c) tourze
Changelog
See [CHANGELOG.md]
All versions of symfony-aop-cache-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ext-redis Version *
psr/cache Version ^2.0 || ^3.0
symfony/cache Version ^6.4
symfony/cache-contracts Version ^3
symfony/config Version ^6.4
symfony/console Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/http-kernel Version ^6.4
symfony/var-exporter Version ^6.4
symfony/yaml Version ^6.4 || ^7.1
tourze/backtrace-helper Version 0.1.*
tourze/doctrine-helper Version 0.0.*
tourze/symfony-aop-bundle Version ~0.0.4
tourze/symfony-cache-hotkey-bundle Version 0.0.*
tourze/symfony-cron-job-bundle Version 0.1.*
twig/twig Version ^3.13|^4.0
ext-redis Version *
psr/cache Version ^2.0 || ^3.0
symfony/cache Version ^6.4
symfony/cache-contracts Version ^3
symfony/config Version ^6.4
symfony/console Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/http-kernel Version ^6.4
symfony/var-exporter Version ^6.4
symfony/yaml Version ^6.4 || ^7.1
tourze/backtrace-helper Version 0.1.*
tourze/doctrine-helper Version 0.0.*
tourze/symfony-aop-bundle Version ~0.0.4
tourze/symfony-cache-hotkey-bundle Version 0.0.*
tourze/symfony-cron-job-bundle Version 0.1.*
twig/twig Version ^3.13|^4.0
The package tourze/symfony-aop-cache-bundle contains the following files
Loading the files please wait ....