PHP 클래스 Elgg\Cache\SystemCache

부터: 1.10.0
상속: use trait Elgg\Profilable
파일 보기 프로젝트 열기: elgg/elgg 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ElggFileCache $cache, Config $config ) Constructor
disable ( ) : void Disables the system disk cache.
enable ( ) : void Enables the system disk cache.
init ( ) Initializes the simplecache lastcache variable and creates system cache files when appropriate.
isEnabled ( ) : boolean Is system cache enabled
load ( string $type ) : string Retrieve the contents of a system cache.
loadAll ( ) Loads the system cache during engine boot
reset ( ) : void Reset the system cache by deleting the caches
save ( string $type, string $data ) : boolean Saves a system cache.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( ElggFileCache $cache, Config $config )
$cache ElggFileCache Elgg disk cache
$config Elgg\Config Elgg config

disable() 공개 메소드

Uses the 'system_cache_enabled' config with a boolean value. Resets the system cache.
public disable ( ) : void
리턴 void

enable() 공개 메소드

Uses the 'system_cache_enabled' config with a boolean value. Resets the system cache.
public enable ( ) : void
리턴 void

init() 공개 메소드

Initializes the simplecache lastcache variable and creates system cache files when appropriate.
public init ( )

isEnabled() 공개 메소드

Is system cache enabled
public isEnabled ( ) : boolean
리턴 boolean

load() 공개 메소드

Retrieve the contents of a system cache.
public load ( string $type ) : string
$type string The type of cache to load
리턴 string

loadAll() 공개 메소드

Loads the system cache during engine boot
또한 보기: elgg_reset_system_cache()
public loadAll ( )

reset() 공개 메소드

Reset the system cache by deleting the caches
public reset ( ) : void
리턴 void

save() 공개 메소드

Saves a system cache.
public save ( string $type, string $data ) : boolean
$type string The type or identifier of the cache
$data string The data to be saved
리턴 boolean