symfony API

sfFunctionCache Class

« Back to API menu

action

addon

cache

config

controller

countable

database

debug

exception

filter

generator

helper

i18n

log

request

response

storage

test

user

util

validator

view

You are currently browsing the symfony documentation for the 1.0 version. Switch to:

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

__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