\MOD_bw_memcache

Summary

Methods
Properties
Constants
__construct()
GetValue()
AddValue()
ReplaceValue()
LookUp()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
IsToggle()
$_tablename
$_sentencecolumn
$_idtradcolumn
$_dao
$memcache
N/A

Properties

$_tablename

$_tablename

$_sentencecolumn

$_sentencecolumn

$_idtradcolumn

$_idtradcolumn

$_dao

$_dao

$memcache

$memcache

Methods

__construct()

__construct( $tablename,  $Column,  $Code)

Parameters

$tablename
$Column
$Code

GetValue()

GetValue( $Code,  $IdLanguage)

This function is the core one it tries to find in memchache the given value for $Code in $IdLanguage if it fails, it then tries to query it from the database if it success, if the value is marked as expired, it update it from the database, mark it as uptodate and returns the value to caller if the value is not marked as expired it returns to caller (this is expected to be the most common case !) it stored it in memcache and returns the value to caller if it fails it store in memcache infor

Parameters

$Code
$IdLanguage

AddValue()

AddValue( $Code,  $IdLanguage,  $value)

This function adds a value in memcache @$Code : the code for the value @$IdLanguage : the language for the value @$value : the value

Parameters

$Code
$IdLanguage
$value

ReplaceValue()

ReplaceValue( $Code,  $IdLanguage,  $value)

This function replace a value in memcache @$Code : the code for the value @$IdLanguage : the language for the value @$value : the value

Parameters

$Code
$IdLanguage
$value

LookUp()

LookUp( $Code,  $IdLanguage)

This function looks in the database for the value correspondig to a Code and a Language it returns false if it fails to find something

Parameters

$Code
$IdLanguage

IsToggle()

IsToggle()

IsToggle returns true if memcache is active, it returns false elsewher