Source for file Cache.php
Documentation is available at Cache.php
namespace Gy\ Core\ AbstractClasses;
if (!defined("GY_CORE") && (GY_CORE !== true)) die( "gy: err include core" );
* abstract class Cache - описывает класс работы с кешем
* cacheInit - инициализация кеша
* @param string $cacheName
* @param int $cacheTime - время кеширования в секундах
abstract public function cacheInit($cacheName, $cacheTime);
* getCacheData() - получить данные из кеша
* @return mixed - может быть массив или одиночное значение любого типа
* setCacheData - записать данные в в кеш
* @param mixed $data - может быть массив или одиночное значение
|