private function getCacheKey(CacheableCommand $command)
    {
        if ($command instanceof HasCacheOptions && $command->getCacheKey()) {
            return $command->getCacheKey();
        }

        return md5(serialize($command));
    }
private function getCacheKey(CacheableCommand $command)
    {
        if ($command instanceof HasCacheOptions && $command->getCacheKey()) {
            return $command->getCacheKey();
        }

        return md5(serialize($command));
    }
private function getCacheKey ( CacheableCommand $ command ) { if ( $ command instanceof HasCacheOptions && $ command -> getCacheKey ( ) ) { return $ command -> getCacheKey ( ) ; } return md5 ( serialize ( $ command ) ) ; }
Create the key to be used when saving this item to the cache pool.

The cache item key is taken as a the (string) serialized command, to ensure the return value is unique
depending on the command properties; that serialized string is then md5'd to ensure it doesn't
overflow any string length limits the implementing CacheItemPoolInterface library has.

@param CacheableCommand $command
@return string
Create the key to be used when saving this item to the cache pool .