Class Summary Translation2_Decorator_CacheLiteFunction (Previous) (Next) Class Summary Translation2_Decorator_DefaultText

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Class Summary Translation2_Decorator_CacheMemory

Class Summary Translation2_Decorator_CacheMemory  -- Decorator to cache fetched data in memory

CacheMemory Decorator Example

This decorator provides a memory cache layer. It does NOT persist through requests, only in the current execution of the script. You can turn off prefetch if you want small network load (but it will increase the number of queries to the database)


<?php
$tr = new Translation2($driver, $dbinfo, $params);
$tr =& $tr->getDecorator('CacheMemory');
$tr->setOption('prefetch', true); //default value is true
?>

Class Summary Translation2_Decorator_CacheLiteFunction (Previous) (Next) Class Summary Translation2_Decorator_DefaultText

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.