mirror of
https://github.com/friendica/friendica
synced 2024-11-19 23:03:41 +00:00
23 lines
474 B
PHP
23 lines
474 B
PHP
|
<?php
|
||
|
|
||
|
namespace Friendica\Core\Cache;
|
||
|
use Friendica\BaseObject;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Abstract class for common used functions
|
||
|
*
|
||
|
* Class AbstractCacheDriver
|
||
|
*
|
||
|
* @package Friendica\Core\Cache
|
||
|
*/
|
||
|
abstract class AbstractCacheDriver extends BaseObject implements IMemoryCacheDriver
|
||
|
{
|
||
|
/**
|
||
|
* @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;
|
||
|
}
|
||
|
}
|