This class can be used to cache the result and output of functions/methods.
Method Summary
-
mixed
call()
Calls a cacheable function or method (or not if there is already a cache for it).
Methods inherited from sfFileCache
clean , cleanDir , get , getCacheDir , getFileLocking , getFileName , getWriteControl , has , hash , initialize , lastModified , read , remove , set , setCacheDir , setFileLocking , setSuffix , setWriteControl , unlink , write , writeAndControl , __construct
Methods inherited from sfCache
clean , get , getLifeTime , has , lastModified , remove , set , setLifeTime
Method Details
-
Calls a cacheable function or method (or not if there is already a cache for it).
Arguments of this method are read with func_get_args. So it doesn't appear in the function definition. Synopsis :
call('functionName', $arg1, $arg2, ...)
(arg1, arg2... are arguments of 'functionName')
returns The result of the function/method
|