Cache_MemCache Class Reference

Inherits Cache.

Collaboration diagram for Cache_MemCache:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Cache_MemCache ()
 add_server ($host, $port)
 set ($key, $var, $expire=0)
get ($key)
 delete ($key)
 flush ()
 gc ()
 stats ()

Public Attributes

 $memcache = null
 $active = false

Detailed Description

PRONTO WEB FRAMEWORK Copyright (C) 2006, Judd Vinet

Author:
Judd Vinet <jvinet@zeroflux.org>

Description: Memcache access routines

Definition at line 10 of file memcache.php.


Member Function Documentation

Cache_MemCache::add_server ( host,
port 
)

Definition at line 34 of file memcache.php.

Referenced by Cache_MemCache().

Cache_MemCache::Cache_MemCache (  ) 

Constructor

Definition at line 20 of file memcache.php.

References $p, add_server(), and Cache::Cache().

Cache_MemCache::delete ( key  ) 

Reimplemented from Cache.

Definition at line 54 of file memcache.php.

Cache_MemCache::flush (  ) 

Flush entire cache.

Reimplemented from Cache.

Definition at line 61 of file memcache.php.

Cache_MemCache::gc (  ) 

Expire old entries.

Reimplemented from Cache.

Definition at line 67 of file memcache.php.

& Cache_MemCache::get ( key  ) 

Reimplemented from Cache.

Definition at line 46 of file memcache.php.

Cache_MemCache::set ( key,
var,
expire = 0 
)
Parameters:
string $key Unique key name to store value under
mixed $var Variable to store
int $expire Expiration time (from now) in seconds. Use zero to never expire.

Reimplemented from Cache.

Definition at line 40 of file memcache.php.

Cache_MemCache::stats (  ) 

Return some usage statistics.

Reimplemented from Cache.

Definition at line 72 of file memcache.php.


Member Data Documentation

Cache_MemCache::$active = false

Definition at line 15 of file memcache.php.

Cache_MemCache::$memcache = null

Definition at line 12 of file memcache.php.


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

Generated on Wed Jan 13 09:21:04 2010 for Pronto Framework by  doxygen 1.6.1