abstract class AbstractCacheDriver extends BaseObject
{
/**
- * @param string $key The original key
- * @return string The cache key used for the cache
+ * @param string $key The original key
+ * @return string The cache key used for the cache
+ * @throws \Exception
*/
protected function getCacheKey($key)
{
// We fetch with the hostname as key to avoid problems with other applications
- return self::getApp()->get_hostname() . ":" . $key;
+ return self::getApp()->getHostName() . ":" . $key;
}
/**
} else {
// Keys are prefixed with the node hostname, let's remove it
array_walk($keys, function (&$value) {
- $value = preg_replace('/^' . self::getApp()->get_hostname() . ':/', '', $value);
+ $value = preg_replace('/^' . self::getApp()->getHostName() . ':/', '', $value);
});
sort($keys);