symfony API

sfFunctionCache Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.0 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

This class can be used to cache the result and output of functions/methods.

Inheritence

sfFunctionCache  <  sfFileCache < sfCache

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

  • (mixed) call () Browse code

    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