createCache() публичный статический Метод

Creates the APCu adapter if applicable.
public static createCache ( string $namespace, integer $defaultLifetime, string $version, Psr\Log\LoggerInterface $logger = null ) : Symfony\Component\Cache\Adapter\AdapterInterface
$namespace string
$defaultLifetime integer
$version string
$logger Psr\Log\LoggerInterface
Результат Symfony\Component\Cache\Adapter\AdapterInterface
Пример #1
0
 /**
  * Gets the 'property_accessor' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Symfony\Component\PropertyAccess\PropertyAccessor A Symfony\Component\PropertyAccess\PropertyAccessor instance
  */
 protected function getPropertyAccessorService()
 {
     return $this->services['property_accessor'] = new \Symfony\Component\PropertyAccess\PropertyAccessor(false, false, \Symfony\Component\PropertyAccess\PropertyAccessor::createCache('lZoWmNUExf', NULL, 'kYH8hP4PfdP8SU3P7jSqTZ', $this->get('monolog.logger.cache', ContainerInterface::NULL_ON_INVALID_REFERENCE)));
 }
Пример #2
0
 protected function getPropertyAccessorService()
 {
     return $this->services['property_accessor'] = new \Symfony\Component\PropertyAccess\PropertyAccessor(false, false, \Symfony\Component\PropertyAccess\PropertyAccessor::createCache('sxnZcGAd7w', NULL, 'imC54TDz8E4mrPrZvIMSee', $this->get('monolog.logger.cache', ContainerInterface::NULL_ON_INVALID_REFERENCE)));
 }
 /**
  * Gets the 'property_accessor' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Symfony\Component\PropertyAccess\PropertyAccessor A Symfony\Component\PropertyAccess\PropertyAccessor instance
  */
 protected function getPropertyAccessorService()
 {
     return $this->services['property_accessor'] = new \Symfony\Component\PropertyAccess\PropertyAccessor(false, false, \Symfony\Component\PropertyAccess\PropertyAccessor::createCache('oufX7cqPfp', NULL, 'dwqEoKLi3SF+xZmlznlKHJ', $this->get('monolog.logger.cache', ContainerInterface::NULL_ON_INVALID_REFERENCE)));
 }