AbstractCacheDriver now working for each CacheDriver
This commit is contained in:
parent
34cea93a8b
commit
749b167fd9
|
@ -11,7 +11,7 @@ use Friendica\BaseObject;
|
|||
*
|
||||
* @package Friendica\Core\Cache
|
||||
*/
|
||||
abstract class AbstractCacheDriver extends BaseObject implements IMemoryCacheDriver
|
||||
abstract class AbstractCacheDriver extends BaseObject
|
||||
{
|
||||
/**
|
||||
* @param string $key The original key
|
||||
|
|
|
@ -12,7 +12,7 @@ use Friendica\Core\Cache;
|
|||
*
|
||||
* @package Friendica\Core\Cache
|
||||
*/
|
||||
class ArrayCache extends AbstractCacheDriver
|
||||
class ArrayCache extends AbstractCacheDriver implements IMemoryCacheDriver
|
||||
{
|
||||
use TraitCompareDelete;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ use Friendica\Util\DateTimeFormat;
|
|||
*
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class DatabaseCacheDriver implements ICacheDriver
|
||||
class DatabaseCacheDriver extends AbstractCacheDriver implements ICacheDriver
|
||||
{
|
||||
public function get($key)
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ use Friendica\Core\Cache;
|
|||
*
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class MemcacheCacheDriver extends AbstractCacheDriver
|
||||
class MemcacheCacheDriver extends AbstractCacheDriver implements IMemoryCacheDriver
|
||||
{
|
||||
use TraitCompareSet;
|
||||
use TraitCompareDelete;
|
||||
|
|
|
@ -9,7 +9,7 @@ use Friendica\Core\Cache;
|
|||
*
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class MemcachedCacheDriver extends AbstractCacheDriver
|
||||
class MemcachedCacheDriver extends AbstractCacheDriver implements IMemoryCacheDriver
|
||||
{
|
||||
use TraitCompareSet;
|
||||
use TraitCompareDelete;
|
||||
|
|
|
@ -10,7 +10,7 @@ use Friendica\Core\Cache;
|
|||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
* @author Roland Haeder <roland@mxchange.org>
|
||||
*/
|
||||
class RedisCacheDriver extends AbstractCacheDriver
|
||||
class RedisCacheDriver extends AbstractCacheDriver implements IMemoryCacheDriver
|
||||
{
|
||||
/**
|
||||
* @var \Redis
|
||||
|
|
Loading…
Reference in a new issue