3 namespace Friendica\Core\Cache;
4 use Friendica\BaseObject;
8 * Abstract class for common used functions
10 * Class AbstractCacheDriver
12 * @package Friendica\Core\Cache
14 abstract class AbstractCacheDriver extends BaseObject
17 * @param string $key The original key
18 * @return string The cache key used for the cache
20 protected function getCacheKey($key) {
21 // We fetch with the hostname as key to avoid problems with other applications
22 return self::getApp()->get_hostname() . ":" . $key;