| Current Path : /var/www/homesaver/www/bitrix/modules/ipol.sdek/classes/lib/Core/Entity/ |
| Current File : /var/www/homesaver/www/bitrix/modules/ipol.sdek/classes/lib/Core/Entity/CacheInterface.php |
<?php
namespace Ipolh\SDEK\Core\Entity;
/**
* Interface CacheInterface
* @package Ipolh\SDEK\Core
* @subpackage Entity
*/
interface CacheInterface
{
/**
* @param $life
* @return mixed
* Sets duration on cache's existence
*/
public function setLife($life);
/**
* @param $hash
* @return mixed
* receives data from cache
*/
public function getCache($hash);
/**
* @param $hash
* @param $data
* @return mixed
* puts data in cache with hash-key
*/
public function setCache($hash, $data);
/**
* @param $hash
* @return mixed
* checks existence of cache
*/
public function checkCache($hash);
}