[4.2] Cache: use available getPrefix() function instead of $this->prefix

Function `getPrefix()` is available and can be used to determine the prefixed key, instead of prepending `$this->prefix`.