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()).
파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$m_defaultTTL integer Default time to live in cache.

공개 메소드들

메소드 설명
__construct ( array $p_parameters, string $p_methodName, $p_defaultTTL = null ) Class constructor.
deleteFromCache ( )
fetchFromCache ( ) : mixed Fetch list with the given parameters from cache.
storeInCache ( array $p_list ) : void Store the list of items in cache.

비공개 메소드들

메소드 설명
getCacheKey ( ) : string Generate the cache key for the list based on parameters.

메소드 상세

__construct() 공개 메소드

Class constructor.
public __construct ( array $p_parameters, string $p_methodName, $p_defaultTTL = null )
$p_parameters array
$p_methodName string

deleteFromCache() 공개 메소드

public 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.
public storeInCache ( array $p_list ) : void
$p_list array
리턴 void

프로퍼티 상세

$m_defaultTTL 보호되어 있는 프로퍼티

Default time to live in cache.
protected int $m_defaultTTL
리턴 integer