sfCache is an abstract class for all cache classes in symfony.
Method Summary
-
boolean
clean()
Cleans the cache.
-
string
get(, , )
Gets the cache content for a given id and namespace.
-
int
getLifeTime()
Returns the current life time.
-
boolean
has(, , )
Returns true if there is a cache for the given id and namespace.
-
int
lastModified()
Returns the cache last modification time.
-
boolean
remove(, )
Removes a content from the cache.
-
boolean
set(, , )
Saves some data in the cache.
-
setLifeTime()
Sets a new life time.
Method Details
-
Cleans the cache.
If no namespace is specified all cache content will be destroyed
else only cache contents of the specified namespace will be destroyed.
returns true if no problem
-
Gets the cache content for a given id and namespace.
returns The data of the cache (or null if no cache available)
-
Returns the current life time.
returns The current life time (in seconds)
-
Returns true if there is a cache for the given id and namespace.
returns true if the cache exists, false otherwise
-
Returns the cache last modification time.
returns The last modification time
-
Removes a content from the cache.
returns true if no problem
-
Saves some data in the cache.
returns true if no problem
-
Sets a new life time.
|