You are here

private function RedisProfilerStorage::isItemNameValid in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Profiler/RedisProfilerStorage.php \Symfony\Component\HttpKernel\Profiler\RedisProfilerStorage::isItemNameValid()
2 calls to RedisProfilerStorage::isItemNameValid()
RedisProfilerStorage::getIndexName in vendor/symfony/http-kernel/Profiler/RedisProfilerStorage.php
Gets the name of the index.
RedisProfilerStorage::getItemName in vendor/symfony/http-kernel/Profiler/RedisProfilerStorage.php
Gets the item name.

File

vendor/symfony/http-kernel/Profiler/RedisProfilerStorage.php, line 315

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;
}