Geschützte Methoden | |
getTemplateUid (Smarty $smarty, $resource_name, $cache_id, $compile_id) | |
sanitize ($string) | |
fetch ($cid, $resource_name=null, $cache_id=null, $compile_id=null, &$content=null, &$timestamp=null, $resource_uid=null) | |
addMetaTimestamp (&$content) | |
getMetaTimestamp (&$content) | |
invalidate ($cid=null, $resource_name=null, $cache_id=null, $compile_id=null, $resource_uid=null) | |
getLatestInvalidationTimestamp ($cid, $resource_name=null, $cache_id=null, $compile_id=null, $resource_uid=null) | |
listInvalidationKeys ($cid, $resource_name=null, $cache_id=null, $compile_id=null, $resource_uid=null) | |
read (array $keys) | |
write (array $keys, $expire=null) | |
delete (array $keys) | |
purge () | |
Geschützte Attribute | |
$contents = array() | |
$timestamps = array() | |
Weitere Geerbte Elemente | |
Öffentliche, statische Methoden geerbt von Smarty_CacheResource | |
static | load (Smarty $smarty, $type=null) |
static | invalidLoadedCache (Smarty $smarty) |
Statische, geschützte Attribute geerbt von Smarty_CacheResource | |
static | $sysplugins |
Definiert in Zeile 31 der Datei smarty_cacheresource_keyvaluestore.php.
acquireLock | ( | Smarty | $smarty, |
Smarty_Template_Cached | $cached | ||
) |
Lock cache for this template
Smarty | $smarty | Smarty object |
Smarty_Template_Cached | $cached | cached object |
Definiert in Zeile 451 der Datei smarty_cacheresource_keyvaluestore.php.
Benutzt write().
|
protected |
Add current microtime to the beginning of $cache_content {
Definiert in Zeile 282 der Datei smarty_cacheresource_keyvaluestore.php.
Wird benutzt von writeCachedContent().
clear | ( | Smarty | $smarty, |
$resource_name, | |||
$cache_id, | |||
$compile_id, | |||
$exp_time | |||
) |
Empty cache for a specific template {
Definiert in Zeile 184 der Datei smarty_cacheresource_keyvaluestore.php.
Benutzt getTemplateUid(), invalidate() und sanitize().
clearAll | ( | Smarty | $smarty, |
$exp_time = null |
|||
) |
Empty cache {
Definiert in Zeile 160 der Datei smarty_cacheresource_keyvaluestore.php.
Benutzt invalidate() und purge().
|
abstractprotected |
Remove values from cache
array | $keys | list of keys to delete |
|
protected |
Fetch and prepare a cache object.
string | $cid | CacheID to fetch |
string | $resource_name | template name |
string | $cache_id | cache id |
string | $compile_id | compile id |
string | $content | cached content |
integer | &$timestamp | cached timestamp (epoch) |
string | $resource_uid | resource's uid |
Definiert in Zeile 259 der Datei smarty_cacheresource_keyvaluestore.php.
Benutzt getLatestInvalidationTimestamp(), getMetaTimestamp() und read().
Wird benutzt von populateTimestamp() und readCachedContent().
|
protected |
Determine the latest timestamp known to the invalidation chain
string | $cid | CacheID to determine latest invalidation timestamp of |
string | $resource_name | template name |
string | $cache_id | cache id |
string | $compile_id | compile id |
string | $resource_uid | source's filepath |
Definiert in Zeile 353 der Datei smarty_cacheresource_keyvaluestore.php.
Benutzt listInvalidationKeys() und read().
Wird benutzt von fetch().
|
protected |
Extract the timestamp the $content was cached
string | &$content | the cached content |
Definiert in Zeile 296 der Datei smarty_cacheresource_keyvaluestore.php.
Wird benutzt von fetch().
|
protected |
Get template's unique ID
Smarty | $smarty | Smarty object |
string | $resource_name | template name |
string | $cache_id | cache id |
string | $compile_id | compile id |
Definiert in Zeile 204 der Datei smarty_cacheresource_keyvaluestore.php.
Wird benutzt von clear().
hasLock | ( | Smarty | $smarty, |
Smarty_Template_Cached | $cached | ||
) |
Check is cache is locked for this template
Smarty | $smarty | Smarty object |
Smarty_Template_Cached | $cached | cached object |
Definiert in Zeile 435 der Datei smarty_cacheresource_keyvaluestore.php.
Benutzt read().
|
protected |
Invalidate CacheID
string | $cid | CacheID |
string | $resource_name | template name |
string | $cache_id | cache id |
string | $compile_id | compile id |
string | $resource_uid | source's uid |
Definiert in Zeile 313 der Datei smarty_cacheresource_keyvaluestore.php.
Benutzt sanitize() und write().
Wird benutzt von clear() und clearAll().
|
protected |
Translate a CacheID into the list of applicable InvalidationKeys. Splits "some|chain|into|an|array" into array( 'clearAll#', 'some', 'some|chain', 'some|chain|into', ... )
string | $cid | CacheID to translate |
string | $resource_name | template name |
string | $cache_id | cache id |
string | $compile_id | compile id |
string | $resource_uid | source's filepath |
Definiert in Zeile 387 der Datei smarty_cacheresource_keyvaluestore.php.
Benutzt sanitize().
Wird benutzt von getLatestInvalidationTimestamp().
populate | ( | Smarty_Template_Cached | $cached, |
Smarty_Internal_Template | $_template | ||
) |
populate Cached Object with meta data from Resource
Smarty_Template_Cached | $cached | cached object |
Smarty_Internal_Template | $_template | template object |
Definiert in Zeile 55 der Datei smarty_cacheresource_keyvaluestore.php.
Benutzt populateTimestamp() und sanitize().
populateTimestamp | ( | Smarty_Template_Cached | $cached) |
populate Cached Object with timestamp and exists from Resource
Smarty_Template_Cached | $cached | cached object |
Definiert in Zeile 69 der Datei smarty_cacheresource_keyvaluestore.php.
Benutzt fetch().
Wird benutzt von populate().
|
protected |
Remove all values from cache
Definiert in Zeile 506 der Datei smarty_cacheresource_keyvaluestore.php.
Wird benutzt von clearAll().
|
abstractprotected |
Read values for a set of keys from cache
array | $keys | list of keys to fetch |
Wird benutzt von fetch(), getLatestInvalidationTimestamp() und hasLock().
readCachedContent | ( | Smarty_Internal_Template | $_template) |
Read cached template from cache
Smarty_Internal_Template | $_template | template object |
Definiert in Zeile 134 der Datei smarty_cacheresource_keyvaluestore.php.
Benutzt fetch().
releaseLock | ( | Smarty | $smarty, |
Smarty_Template_Cached | $cached | ||
) |
Unlock cache for this template
Smarty | $smarty | Smarty object |
Smarty_Template_Cached | $cached | cached object |
Definiert in Zeile 466 der Datei smarty_cacheresource_keyvaluestore.php.
|
protected |
Sanitize CacheID components
string | $string | CacheID component to sanitize |
Definiert in Zeile 235 der Datei smarty_cacheresource_keyvaluestore.php.
Wird benutzt von clear(), invalidate(), listInvalidationKeys() und populate().
|
abstractprotected |
Save values for a set of keys to cache
array | $keys | list of values to save |
int | $expire | expiration time |
Wird benutzt von acquireLock(), invalidate() und writeCachedContent().
writeCachedContent | ( | Smarty_Internal_Template | $_template, |
$content | |||
) |
Write the rendered template output to cache
Smarty_Internal_Template | $_template | template object |
string | $content | content to cache |
Definiert in Zeile 120 der Datei smarty_cacheresource_keyvaluestore.php.
Benutzt addMetaTimestamp() und write().
|
protected |
Definiert in Zeile 38 der Datei smarty_cacheresource_keyvaluestore.php.
|
protected |
Definiert in Zeile 45 der Datei smarty_cacheresource_keyvaluestore.php.