CacheInterface::write()

write(ClassMetadata $metadata) Stores a class metadata in the cache. Parameters ClassMetadata $metadata A Class Metadata

CacheInterface::read()

ClassMetadata|false read(string $class) Returns the metadata for the given class from the cache. Parameters string $class Class Name Return Value ClassMetadata|false A ClassMetadata instance or false on miss

CacheInterface::has()

has(string $class) Returns whether metadata for the given class exists in the cache. Parameters string $class

CacheInterface

interface CacheInterface Persists ClassMetadata instances in a cache. Methods 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. Details has(string $class) Returns whether metadata for the given class exists in the cache. Parameters st

CacheException

class CacheException extends Exception implements CacheException

CacheClearerInterface

interface CacheClearerInterface CacheClearerInterface. Methods clear(string $cacheDir) Clears any caches necessary. Details clear(string $cacheDir) Clears any caches necessary. Parameters string $cacheDir The cache directory

CacheClearCommand

class CacheClearCommand extends ContainerAwareCommand Clear and Warmup the cache. Methods __construct(string|null $name = null) Constructor. from Command ignoreValidationErrors() Ignores validation errors. from Command setApplication(Application $application = null) Sets the application instance for this command. from Command setHelperSet(HelperSet $helperSet) Sets the helper set. from Command HelperSet getHelperSet() Gets the helper set. from Command Application getA

CacheClassMetadataFactory::hasMetadataFor()

bool hasMetadataFor(mixed $value) Checks if class has metadata. Parameters mixed $value Return Value bool

CacheClassMetadataFactory::getMetadataFor()

ClassMetadataInterface getMetadataFor(string|object $value) If the method was called with the same class name (or an object of that class) before, the same metadata instance is returned. If the factory was configured with a cache, this method will first look for an existing metadata instance in the cache. If an existing instance is found, it will be returned without further ado. Otherwise, a new metadata instance is created. If the factory was configured with a loader, the metad

CacheClassMetadataFactory

class CacheClassMetadataFactory implements ClassMetadataFactoryInterface Caches metadata using a PSR-6 implementation. Traits ClassResolverTrait Resolves a class name. Methods __construct(ClassMetadataFactoryInterface $decorated, CacheItemPoolInterface $cacheItemPool) ClassMetadataInterface getMetadataFor(string|object $value) If the method was called with the same class name (or an object of that class) before, the same metadata instance is returned. bool hasMetadataFor