CacheLoader

class CacheLoader extends Loader CacheLoader is a loader that caches other loaders responses on the filesystem. This cache only caches on disk to allow PHP accelerators to cache the opcodes. All other mechanism would imply the use of eval(). Methods setLogger(LoggerInterface $logger) Sets the debug logger to use for this loader. from Loader __construct(LoaderInterface $loader, string $dir) Constructor. Storage|bool load(TemplateReferenceInterface $template) Loads a template.

CachePoolPass

class CachePoolPass implements CompilerPassInterface Methods process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. static getServiceProvider(ContainerBuilder $container, $name) Details process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container static getServiceProvider(Contai

CachePoolPass::process()

process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container

CacheItem::getKey()

getKey() {@inheritdoc}

CacheItem::isHit()

isHit() {@inheritdoc}

CacheItem::log()

static log(LoggerInterface $logger = null, $message, $context = array()) Internal logging helper. Parameters LoggerInterface $logger $message $context

CacheItem::validateKey()

static validateKey(string $key) Validates a cache key according to PSR-6. Parameters string $key The key to validate Exceptions InvalidArgumentException When $key is not valid.

CacheItem::expiresAt()

expiresAt($expiration) {@inheritdoc} Parameters $expiration

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::write()

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