Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

EasyDBCache Class Reference
[EasyCache System]

Inheritance diagram for EasyDBCache:

EasyCache List of all members.

Detailed Description

this class caches data to a database! if you cant access a file system or you want to do everything via db, then this is for you.

i dont use it very much, as i recommend memcache, but you could probably get pretty good performance out of a memory db. keep in mind this will probably put alot of load on your db server.

Definition at line 487 of file cache.inc.php.

Public Member Functions

 __construct ($table="easy_cache", $life=null)
 create our object.
 get ($key)
 set ($key, $data)
 saves our data to the cache.
 delete ($key)
 deletes our cached data.
 flush ()
 completely wipe the cache and start over

Protected Member Functions

 createTable ()

Private Attributes

 $table


Member Function Documentation

EasyDBCache::__construct table = "easy_cache",
life = null
 

create our object.

where and how long to store it.

Parameters:
$table - the name of the table in the database to store the cache.
$life - the life of the cached data in seconds.

Definition at line 497 of file cache.inc.php.

EasyDBCache::createTable  )  [protected]
 

Definition at line 508 of file cache.inc.php.

References dbQuery().

EasyDBCache::delete key  ) 
 

deletes our cached data.

Parameters:
$key the key identifying your data.

Reimplemented from EasyCache.

Definition at line 617 of file cache.inc.php.

References dbExecute().

EasyDBCache::flush  ) 
 

completely wipe the cache and start over

Reimplemented from EasyCache.

Definition at line 627 of file cache.inc.php.

References dbExecute().

EasyDBCache::get key  ) 
 

Parameters:
$name a unique name you assign to the data to identify it.

Reimplemented from EasyCache.

Definition at line 524 of file cache.inc.php.

References dbFetchAssoc(), dbQuery(), and get().

Referenced by get().

EasyDBCache::set key,
data
 

saves our data to the cache.

Parameters:
$key the key to identify the data.
$data the data to save.
Returns:
the number of bytes written

Reimplemented from EasyCache.

Definition at line 593 of file cache.inc.php.

References dbEscape(), dbExecute(), and set().

Referenced by set().


Member Data Documentation

EasyDBCache::$table [private]
 

Definition at line 489 of file cache.inc.php.


The documentation for this class was generated from the following file:
Generated on Fri Oct 27 12:26:41 2006 for BaseJumper by doxygen 1.3.9.1