This decorator provides a very efficient cache layer. It requires PEAR::Cache_Lite. It supports all the main options supported by Cache_Lite:
lifeTime [integer]
cacheDir [string]
fileLocking [boolean]
caching [boolean]
$tr = new Translation2($driver, $dbinfo, $params); $tr =& $tr->getDecorator('CacheLiteFunction'); $tr->setOption('cacheDir', '/var/tmp/'); $tr->setOption('lifeTime', 3600*24*7); //one week //change a custom Cache_Lite option $tr->setCacheOption($name, $value); |
Пред. | Начало | След. |
Class Summary Translation2_Decorator | Уровень выше | Class Summary Translation2_Decorator_CacheMemory |
HIVE: All information for read only. Please respect copyright! |