padam87 / doctrine-cache-invalidator-bundle
A simplistic way to invalidate Doctrine result cache.
Installs: 464
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.4.0
- doctrine/orm: ^2.2.3
- symfony/framework-bundle: ~2.4|~3.0
- symfony/property-access: ~2.3|~3.0
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.4
This package is auto-updated.
Last update: 2024-12-23 04:51:36 UTC
README
A simplistic way to invalidate Doctrine result cache
Please take a look at the official Doctrine invalidation before using this bundle: http://doctrine-orm.readthedocs.org/en/latest/reference/second-level-cache.html
If you need a complete second level cache, this is not the bundle you are looking for. However if you would like to cache some custom query results, you might find this helpful.
Usage
At the moment only annotation configuration is supported.
use Padam87\DoctrineCacheInvalidatorBundle\Annotation\InvalidateCache; /** * @ORM\Entity() * @InvalidateCache("my_cache_key", events = {"PERSIST", "DELETE"}) */ class Entity { // ... }