private function BaseMemcacheProfilerStorage::isItemNameValid in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Profiler/BaseMemcacheProfilerStorage.php \Symfony\Component\HttpKernel\Profiler\BaseMemcacheProfilerStorage::isItemNameValid()
2 calls to BaseMemcacheProfilerStorage::isItemNameValid()
- BaseMemcacheProfilerStorage::getIndexName in vendor/
symfony/ http-kernel/ Profiler/ BaseMemcacheProfilerStorage.php - Get name of index.
- BaseMemcacheProfilerStorage::getItemName in vendor/
symfony/ http-kernel/ Profiler/ BaseMemcacheProfilerStorage.php - Get item name.
File
- vendor/
symfony/ http-kernel/ Profiler/ BaseMemcacheProfilerStorage.php, line 300
Class
- BaseMemcacheProfilerStorage
- Base Memcache storage for profiling information in a Memcache.
Namespace
Symfony\Component\HttpKernel\ProfilerCode
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;
}