1
1
Fork 0

AbstractCacheDriver now working for each CacheDriver

This commit is contained in:
Philipp Holzer 2018-07-05 21:54:20 +02:00
parent 34cea93a8b
commit 749b167fd9
No known key found for this signature in database
GPG key ID: 58160D7D6AF942B6
6 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -12,7 +12,7 @@ use Friendica\Core\Cache;
*
* @package Friendica\Core\Cache
*/
class ArrayCache extends AbstractCacheDriver
class ArrayCache extends AbstractCacheDriver implements IMemoryCacheDriver
{
use TraitCompareDelete;

View file

@ -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)
{

View file

@ -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;

View file

@ -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;

View file

@ -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