mirror of
https://github.com/friendica/friendica
synced 2024-11-11 23:42:53 +00:00
1ffe0cfd81
Added Redis Lock Unittests Added Memcached Lock Unittests Fixed a bug in dba Fixed a bug in RedisLock
24 lines
526 B
PHP
24 lines
526 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
|
|
{
|
|
/**
|
|
* @param string $key The original key
|
|
* @return string The cache key used for the cache
|
|
*/
|
|
protected function getCacheKey($key) {
|
|
// We fetch with the hostname as key to avoid problems with other applications
|
|
return self::getApp()->get_hostname() . ":" . $key;
|
|
}
|
|
}
|