TYPO3 API  SVNRelease
Public Member Functions
t3lib_cache_frontend_StringFrontend Class Reference
Inheritance diagram for t3lib_cache_frontend_StringFrontend:
Inheritance graph
[legend]
Collaboration diagram for t3lib_cache_frontend_StringFrontend:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 set ($entryIdentifier, $string, $tags=array(), $lifetime=NULL)
 get ($entryIdentifier)
 getByTag ($tag)

Detailed Description

Definition at line 36 of file class.t3lib_cache_frontend_stringfrontend.php.


Member Function Documentation

t3lib_cache_frontend_StringFrontend::get ( entryIdentifier)

Loads a variable value from the cache.

Parameters:
stringIdentifier of the cache entry to fetch
Returns:
string The value
Author:
Karsten Dambekalns <karsten@typo3.org>

Implements t3lib_cache_frontend_Frontend.

Definition at line 83 of file class.t3lib_cache_frontend_stringfrontend.php.

References t3lib_cache_frontend_AbstractFrontend\isValidEntryIdentifier().

t3lib_cache_frontend_StringFrontend::getByTag ( tag)

Finds and returns all cache entries which are tagged by the specified tag.

Parameters:
string$tagThe tag to search for
Returns:
array An array with the content of all matching entries. An empty array if no entries matched
Author:
Karsten Dambekalns <karsten@typo3.org>

Implements t3lib_cache_frontend_Frontend.

Definition at line 101 of file class.t3lib_cache_frontend_stringfrontend.php.

References t3lib_cache_frontend_AbstractFrontend\$identifier, and t3lib_cache_frontend_AbstractFrontend\isValidTag().

t3lib_cache_frontend_StringFrontend::set ( entryIdentifier,
string,
tags = array(),
lifetime = NULL 
)

Saves the value of a PHP variable in the cache. Note that the variable will be serialized if necessary.

Parameters:
stringAn identifier used for this cache entry
stringThe variable to cache
arrayTags to associate with this cache entry
integerLifetime of this cache entry in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited liftime.
Returns:
void
Author:
Karsten Dambekalns <karsten@typo3.org>

Implements t3lib_cache_frontend_Frontend.

Reimplemented in t3lib_cache_frontend_PhpFrontend.

Definition at line 49 of file class.t3lib_cache_frontend_stringfrontend.php.

References t3lib_cache_frontend_AbstractFrontend\isValidEntryIdentifier(), and t3lib_cache_frontend_AbstractFrontend\isValidTag().


The documentation for this class was generated from the following file: