abstract | |
---|---|
extends |
Smarty_CacheResource |
Cache Handler API
Methods | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abstract
protected
|
fetch(string $id, string $name, string $cache_id, string $compile_id, string &$content, integer &$mtime): void
fetch cached content and its modification time from data source
fetch cached content and its modification time from data source Parameters
Implemented by |
# | ||||||||||||
protected
|
fetchTimestamp(string $id, string $name, string $cache_id, string $compile_id): integer|boolean
Fetch cached content's modification timestamp from data source
{@internal implementing this method is optional.
Only…
Fetch cached content's modification timestamp from data source {@internal implementing this method is optional. Only implement it if modification times can be accessed faster than loading the complete cached content.}} Parameters
Returnstimestamp (epoch) the template was modified, or false if not found Overriden by |
# | ||||||||||||
abstract
protected
|
save(string $id, string $name, string $cache_id, string $compile_id, integer|null $exp_time, string $content): boolean
Save content to cache
Save content to cache Parameters
Returnssuccess Implemented by |
# | ||||||||||||
abstract
protected
|
delete(string|null $name, string|null $cache_id, string|null $compile_id, integer|null $exp_time): integer
Delete content from cache
Delete content from cache Parameters
Returnsnumber of deleted caches Implemented by |
# | ||||||||||||
public
|
populate(Smarty_Template_Cached $cached, Smarty_Internal_Template $_template): void
populate Cached Object with meta data from Resource
populate Cached Object with meta data from Resource Parameters
Implements |
# | ||||||||||||
public
|
populateTimestamp(Smarty_Template_Cached $cached): void
populate Cached Object with timestamp and exists from Resource
populate Cached Object with timestamp and exists from Resource Implements |
# | ||||||||||||
public
|
process(Smarty_Internal_Template $_smarty_tpl, Smarty_Template_Cached $cached = null, boolean $update = false): boolean
Read the cached template and process the header
Read the cached template and process the header Parameters
Returnstrue or false if the cached content does not exist Implements |
# | ||||||||||||
public
|
writeCachedContent(Smarty_Internal_Template $_template, string $content): boolean
Write the rendered template output to cache
Write the rendered template output to cache Parameters
Returnssuccess Implements |
# | ||||||||||||
public
|
readCachedContent(Smarty_Internal_Template $_template): string|boolean
Read cached template from cache
Read cached template from cache Parameters
Returnscontent Implements |
# | ||||||||||||
public
|
clearAll(Smarty $smarty, integer $exp_time = null): integer
Empty cache
Empty cache Parameters
Returnsnumber of cache files deleted Implements |
# | ||||||||||||
public
|
clear(Smarty $smarty, string $resource_name, string $cache_id, string $compile_id, integer $exp_time): int
Empty cache for a specific template
Empty cache for a specific template Parameters
Returnsnumber of cache files deleted Throws
Implements |
# | ||||||||||||
public
|
hasLock(Smarty $smarty, Smarty_Template_Cached $cached): boolean
Check is cache is locked for this template
Check is cache is locked for this template Parameters
Returnstrue or false if cache is locked Overrides |
# | ||||||||||||
public
|
acquireLock(Smarty $smarty, Smarty_Template_Cached $cached): bool|void
Lock cache for this template
Lock cache for this template Parameters
Overrides |
# | ||||||||||||
public
|
releaseLock(Smarty $smarty, Smarty_Template_Cached $cached): bool|void
Unlock cache for this template
Unlock cache for this template Parameters
Overrides |
# |
Methods inherited from Smarty_CacheResource |
---|
getCachedContent(), locked(), load() |
Properties inherited from Smarty_CacheResource |
---|
$sysplugins |