DoctrineCacheManager
in package
Table of Contents
Properties
- $queryCache : CacheItemPoolInterface
- $resultCache : CacheItemPoolInterface
Methods
- __construct() : mixed
- invalidateAllCache() : void
- Clears both the result cache and the query cache.
- invalidateEntityCache() : void
- Invalidates the cache for an entity by clearing the whole result cache.
- invalidateQueryCache() : void
- Clears the query cache only.
- invalidateResultCache() : void
- Clears the result cache only.
Properties
$queryCache read-only
private
CacheItemPoolInterface
$queryCache
$resultCache read-only
private
CacheItemPoolInterface
$resultCache
Methods
__construct()
public
__construct(CacheItemPoolInterface $resultCache, CacheItemPoolInterface $queryCache) : mixed
Parameters
- $resultCache : CacheItemPoolInterface
- $queryCache : CacheItemPoolInterface
invalidateAllCache()
Clears both the result cache and the query cache.
public
invalidateAllCache() : void
invalidateEntityCache()
Invalidates the cache for an entity by clearing the whole result cache.
public
invalidateEntityCache(string $entityClass[, int|null $entityId = null ]) : void
Parameters
- $entityClass : string
- $entityId : int|null = null
invalidateQueryCache()
Clears the query cache only.
public
invalidateQueryCache() : void
invalidateResultCache()
Clears the result cache only.
public
invalidateResultCache() : void