PHP Класс CampCacheList
Simple class providing a standard interface to fetch and store
list of objects (articles, issues, sections, attachments, etc)
generated by static methods in several classes (e.g. Articles::GetList(),
ArticleTypeField::FetchFields()).
Показать файл
Открыть проект
Примеры использования класса
Защищенные свойства (Protected)
Открытые методы
Приватные методы
Метод |
Описание |
|
getCacheKey ( ) : string |
Generate the cache key for the list based on parameters. |
|
Описание методов
__construct()
публичный Метод
deleteFromCache()
публичный Метод
fetchFromCache()
публичный Метод
Fetch list with the given parameters from cache.
public fetchFromCache ( ) : mixed |
Результат |
mixed |
array $list List of items found in cache
null List does not exist in cache |
storeInCache()
публичный Метод
Store the list of items in cache.
Описание свойств
$m_defaultTTL защищенное свойство
Default time to live in cache.
protected int $m_defaultTTL |
Результат |
integer |
|