Neuron-PHP

CacheableView

Table of Contents

Properties

$_cache  : ViewCache|null

Methods

getCachedContent()  : string|null
Get cached content
getCacheKey()  : string
Get cache key for current view
isCacheEnabled()  : bool
Check if cache is enabled
setCachedContent()  : void
Set cached content
getCache()  : ViewCache|null
Get cache instance
initializeCache()  : ViewCache|null
Initialize cache from registry

Properties

Methods

getCachedContent()

Get cached content

protected getCachedContent(string $key) : string|null
Parameters
$key : string
Return values
string|null

getCacheKey()

Get cache key for current view

protected getCacheKey(array<string|int, mixed> $data) : string
Parameters
$data : array<string|int, mixed>
Return values
string

isCacheEnabled()

Check if cache is enabled

protected isCacheEnabled() : bool
Return values
bool

setCachedContent()

Set cached content

protected setCachedContent(string $key, string $content) : void
Parameters
$key : string
$content : string

        
On this page

Search results