Replace the line:
with the following one:
$cacheId = implode('-', $this->scopePriorityScheme) . "-" . $this->cacheId;
Replace the line:
with the following one:
$cacheId = implode('-', $this->scopePriorityScheme) . "-" . $this->cacheId;