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