gy-doc-code
[ class tree: gy-doc-code ] [ index: gy-doc-code ] [ all elements ]

Source for file Cache.php

Documentation is available at Cache.php

  1. <?php 
  2.  
  3. namespace Gy\Core\AbstractClasses;
  4.  
  5. if (!defined("GY_CORE") && (GY_CORE !== true)) die( "gy: err include core" );
  6.  
  7. /** 
  8.  * abstract class Cache - описывает класс работы с кешем
  9.  */
  10. abstract class Cache
  11. {
  12.  
  13.     /**
  14.      * cacheInit - инициализация кеша
  15.      * @param string $cacheName 
  16.      * @param int $cacheTime - время кеширования в секундах
  17.      * @return boolean 
  18.      */
  19.     abstract public function cacheInit($cacheName, $cacheTime);
  20.     
  21.     /**
  22.      * getCacheData() - получить данные из кеша
  23.      * @return mixed - может быть массив или одиночное значение любого типа
  24.      */
  25.     abstract public function getCacheData();
  26.     
  27.     /**
  28.      * setCacheData - записать данные в в кеш
  29.      * @param mixed $data - может быть массив или одиночное значение
  30.      * @return boolean true
  31.      */
  32.     abstract public function setCacheData($data);
  33. }

Documentation generated on Sat, 27 Apr 2024 11:17:28 +0300 by phpDocumentor 1.4.3