class DoctrineCache implements CacheInterface
Adapts a Doctrine cache to a CacheInterface.
__construct(Cache $cache) | ||
setCache(Cache $cache) | ||
has(string $class) Returns whether metadata for the given class exists in the cache. | ||
ClassMetadata|false | read(string $class) Returns the metadata for the given class from the cache. | |
write(ClassMetadata $metadata) Stores a class metadata in the cache. |
Cache | $cache |
Cache | $cache |
Returns whether metadata for the given class exists in the cache.
string | $class |
Returns the metadata for the given class from the cache.
string | $class | Class Name |
ClassMetadata|false | A ClassMetadata instance or false on miss |
Stores a class metadata in the cache.
ClassMetadata | $metadata |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Validator/Mapping/Cache/DoctrineCache.html