PHP Class 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()).
Exibir arquivo
Open project: sourcefabric/newscoop
Class Usage Examples
Protected Properties
Public Methods
Private Methods
Method |
Description |
|
getCacheKey ( ) : string |
Generate the cache key for the list based on parameters. |
|
Method Details
__construct()
public method
deleteFromCache()
public method
fetchFromCache()
public method
Fetch list with the given parameters from cache.
public fetchFromCache ( ) : mixed |
return |
mixed |
array $list List of items found in cache
null List does not exist in cache |
storeInCache()
public method
Store the list of items in cache.
Property Details
$m_defaultTTL protected_oe property
Default time to live in cache.
protected int $m_defaultTTL |
return |
integer |
|