private function RedisProfilerStorage::isItemNameValid

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

File

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

Class

RedisProfilerStorage
RedisProfilerStorage stores profiling information in Redis.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

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