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
__construct , hash , setSuffix , getFileLocking , setWriteControl , writeAndControl , read , setFileLocking , initialize , get , remove , set , clean , cleanDir , getCacheDir , getFileName , unlink , getWriteControl , lastModified , has , write , setCacheDir
Methods inherited from sfCache
setLifeTime , get , getLifeTime , remove , set , clean , lastModified , has
Method Details
-
(mixed) call ()
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
|