Class Cache

Description

Located in /libraries/cache.php (line 18)


	
			
Method Summary
 void delete ( $type,  $id)
 void disableCache ()
 void enableCache ()
 void flush ()
 void get ( $type,  $id, [ $mustBeNewerThan = false], [ $forceGet = false])
 void getLibrary ()
 void key ( $type,  $id)
 void set ( $type,  $id,  $obj, [ $expire = false])
 void startup ()
Methods
delete (line 154)

Removes an item from the cache

  • access: public
void delete ( $type,  $id)
  • $type
  • $id
disableCache (line 67)
  • access: public
void disableCache ()
disableLocalCache (line 81)
  • access: public
void disableLocalCache ()
enableCache (line 74)
  • access: public
void enableCache ()
enableLocalCache (line 84)
  • access: public
void enableLocalCache ()
flush (line 169)

Completely flushes the cache

  • access: public
void flush ()
get (line 115)

Retrieves an item from the cache

If $forceGet is true, we sidestep ENABLE_CACHE. This is for certain operations that the cache must always be enabled for (getting remote data, etc..)

  • access: public
void get ( $type,  $id, [ $mustBeNewerThan = false], [ $forceGet = false])
  • $type
  • $id
  • $mustBeNewerThan
  • $forceGet
getLibrary (line 24)
  • access: public
void getLibrary ()
key (line 20)
  • access: public
void key ( $type,  $id)
  • $type
  • $id
set (line 93)

Inserts or updates an item to the cache

If $forceSet is true, we sidestep ENABLE_CACHE. This is for certain operations that the cache must always be enabled for (getting remote data, etc..)

  • access: public
void set ( $type,  $id,  $obj, [ $expire = false])
  • $type
  • $id
  • $obj
  • $expire
startup (line 63)
  • access: public
void startup ()

Documentation generated on Thu, 15 Sep 2011 16:36:18 -0700 by phpDocumentor 1.4.1