phpOMS/DataStorage/Cache/Connection/RedisCache.php

135 lines
2.4 KiB
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package phpOMS\DataStorage\Cache\Connection
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace phpOMS\DataStorage\Cache\Connection;
use phpOMS\DataStorage\Cache\CacheStatus;
/**
* RedisCache class.
*
* PHP Version 5.6
*
* @package phpOMS\DataStorage\Cache\Connection
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
*/
class RedisCache extends ConnectionAbstract
{
/**
* Constructor
*
* @param array $data Cache data
*
* @since 1.0.0
*/
public function __construct(array $data)
{
}
/**
* {@inheritdoc}
*/
public function connect(array $data) : void
{
$this->status = CacheStatus::ACTIVE;
}
/**
* {@inheritdoc}
*/
public function set($key, $value, int $expire = -1) : void
{
// TODO: Implement set() method.
}
/**
* {@inheritdoc}
*/
public function add($key, $value, int $expire = -1) : bool
{
// TODO: Implement add() method.
}
/**
* {@inheritdoc}
*/
public function get($key, int $expire = -1)
{
// TODO: Implement get() method.
}
/**
* {@inheritdoc}
*/
public function delete($key, int $expire = -1) : bool
{
// TODO: Implement delete() method.
}
/**
* {@inheritdoc}
*/
public function flush(int $expire = 0) : bool
{
// TODO: Implement flush() method.
return true;
}
/**
* {@inheritdoc}
*/
public function flushAll() : bool
{
// TODO: Implement flush() method.
return true;
}
/**
* {@inheritdoc}
*/
public function replace($key, $value, int $expire = -1) : bool
{
// TODO: Implement replace() method.
}
/**
* {@inheritdoc}
*/
public function stats() : array
{
// TODO: Implement stats() method.
}
/**
* {@inheritdoc}
*/
public function getThreshold() : int
{
// TODO: Implement getThreshold() method.
}
/**
* {@inheritdoc}
*/
public function setStatus(int $status) : void
{
// TODO: Implement setStatus() method.
}
}