Snc\RedisBundle\Profiler\Storage\RedisProfilerStorage::isItemNameValid PHP Method

isItemNameValid() protected method

Check if the item name is valid.
protected isItemNameValid ( string $name ) : boolean
$name string
return boolean
    protected 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;
    }