Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes

cacheService Class Reference

Public Member Functions

 __construct (&$xmlArr)
 destroy ()
 init ($objName="", $lifeTime=0)
 save ($data, $id)
 load ($id)
 test ($id)
 remove ($id)
 getIds ()
 cleanAll ()
 cleanExpired ()

Data Fields

 $m_Cache = "Disbaled"
 $m_CacheEngine = "File"

Protected Member Functions

 readMetadata (&$xmlArr)

Protected Attributes

 $m_CacheOptions = array()
 $m_CacheEngineOptions = array()
 $m_CacheObj = null

Detailed Description

Definition at line 25 of file cacheService.php.


Constructor & Destructor Documentation

__construct ( &$  xmlArr )

Initialize accessService with xml array metadata

Parameters:
array$xmlArr
Returns:
void

Definition at line 40 of file cacheService.php.

Here is the call graph for this function:


Member Function Documentation

cleanAll (  )

clean all cache

Returns:
boolean true if ok

Definition at line 269 of file cacheService.php.

cleanExpired (  )

clean Expired

Returns:
boolean true if ok

Definition at line 286 of file cacheService.php.

destroy (  )

Destroy cache

Returns:
void

Definition at line 50 of file cacheService.php.

getIds (  )

get a list of all caches

Returns:
array ids

Definition at line 252 of file cacheService.php.

init ( objName = "",
lifeTime = 0 
)

Initialize cache

Parameters:
string$objName
number$lifeTime
Returns:
boolean|Zend_Cache

Definition at line 137 of file cacheService.php.

load ( id )

Load cache

Parameters:
string$idcache id
Returns:
mixed cached datas (or false)

Definition at line 201 of file cacheService.php.

readMetadata ( &$  xmlArr ) [protected]

Read array meta data, and store to meta object

Parameters:
array$xmlArr
Returns:
void

Definition at line 65 of file cacheService.php.

Here is the caller graph for this function:

remove ( id )

Remove a cache

Parameters:
string$idcache id to remove
Returns:
boolean true if ok

Definition at line 235 of file cacheService.php.

save ( data,
id 
)

Save cache

Parameters:
mixed$data
string$id
Returns:
boolean true if no problem

Definition at line 183 of file cacheService.php.

test ( id )

Test cache

Parameters:
string$idcache id
Returns:
boolean true is a cache is available, false else

Definition at line 218 of file cacheService.php.


The documentation for this class was generated from the following file: