private function BaseMemcacheProfilerStorage::isItemNameValid

2 calls to BaseMemcacheProfilerStorage::isItemNameValid()
BaseMemcacheProfilerStorage::getIndexName in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/BaseMemcacheProfilerStorage.php
Get name of index
BaseMemcacheProfilerStorage::getItemName in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/BaseMemcacheProfilerStorage.php
Get item name

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/BaseMemcacheProfilerStorage.php, line 297

Class

BaseMemcacheProfilerStorage
Base Memcache storage for profiling information in a Memcache.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

private function isItemNameValid($name) {
  $length = strlen($name);
  if ($length > 250) {
    throw new \RuntimeException(sprintf('The memcache item key "%s" is too long (%s bytes). Allowed maximum size is 250 bytes.', $name, $length));
  }
  return true;
}