Lines Matching full:cache
7 use Metadata\Cache\CacheInterface;
21 private $cache; variable in Metadata\\MetadataFactory
60 public function setCache(CacheInterface $cache): void argument
62 $this->cache = $cache;
84 // check the cache
85 if (null !== $this->cache) {
86 … if (($classMetadata = $this->cache->load($class->getName())) instanceof NullMetadata) {
93 …throw new \LogicException(sprintf('The cache must return instances of ClassMetadata, but got %s.',…
97 $this->cache->evict($classMetadata->name);
111 if (null !== $this->cache) {
112 $this->cache->put($classMetadata);
118 if (null !== $this->cache && !$this->debug) {
119 $this->cache->put(new NullMetadata($class->getName()));