padam87/doctrine-cache-invalidator-bundle

A simplistic way to invalidate Doctrine result cache.

Maintainers

Package info

github.com/Padam87/DoctrineCacheInvalidatorBundle

Type:symfony-bundle

pkg:composer/padam87/doctrine-cache-invalidator-bundle

Statistics

Installs: 465

Dependents: 0

Suggesters: 0

Stars: 7

Open Issues: 0

v1.0.3 2017-04-18 12:17 UTC

This package is auto-updated.

Last update: 2026-02-23 07:22:16 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
{
    // ...
}