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

CacheItem::expiresAfter()

expiresAfter($time) {@inheritdoc} Parameters $time

CacheInterface::write()

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

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

CacheException

class CacheException extends Exception implements CacheException

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

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

CacheClassMetadataFactory::hasMetadataFor()

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

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

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