2018-07-05 15:47:52 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Friendica\Core\Cache;
|
|
|
|
use Friendica\BaseObject;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Abstract class for common used functions
|
|
|
|
*
|
|
|
|
* Class AbstractCacheDriver
|
|
|
|
*
|
|
|
|
* @package Friendica\Core\Cache
|
|
|
|
*/
|
2018-07-05 15:54:20 -04:00
|
|
|
abstract class AbstractCacheDriver extends BaseObject
|
2018-07-05 15:47:52 -04:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param string $key The original key
|
|
|
|
* @return string The cache key used for the cache
|
|
|
|
*/
|
|
|
|
protected function getCacheKey($key) {
|
|
|
|
return self::getApp()->get_hostname() . ":" . $key;
|
|
|
|
}
|
2018-07-05 16:01:33 -04:00
|
|
|
}
|