Cache_SHM Class Reference

Inherits Cache.

Collaboration diagram for Cache_SHM:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Cache_SHM ()
 set ($key, $var, $expire=0)
get ($key)
 delete ($key)
 flush ()
 gc ()
 stats ()
 _get_dict ()
 _set_dict ($dict)
 _hash_key ($key)

Public Attributes

 $shmkey
 $shmid
 $memsize = CACHE_SHM_SIZE

Detailed Description

PRONTO WEB FRAMEWORK Copyright (C) 2006, Judd Vinet

Author:
Judd Vinet <jvinet@zeroflux.org>

Description: SHM (Shared Memory) cache driver. This driver is useful for times when you don't have a more robust caching facility, such as eAccelerator or MemCache. It should be a last resort, however.

Definition at line 13 of file shm.php.


Member Function Documentation

Cache_SHM::_get_dict (  ) 

Internal dictionary routines

Definition at line 118 of file shm.php.

Referenced by _hash_key(), gc(), set(), and stats().

Cache_SHM::_hash_key ( key  ) 

Definition at line 130 of file shm.php.

References _get_dict(), and _set_dict().

Referenced by delete(), get(), and set().

Cache_SHM::_set_dict ( dict  ) 

Definition at line 125 of file shm.php.

Referenced by _hash_key(), gc(), and set().

Cache_SHM::Cache_SHM (  ) 

Constructor

Definition at line 22 of file shm.php.

References Cache::Cache().

Cache_SHM::delete ( key  ) 

Reimplemented from Cache.

Definition at line 69 of file shm.php.

References _hash_key().

Cache_SHM::flush (  ) 

Flush entire cache.

Reimplemented from Cache.

Definition at line 79 of file shm.php.

Cache_SHM::gc (  ) 

Expire old entries.

Reimplemented from Cache.

Definition at line 89 of file shm.php.

References _get_dict(), and _set_dict().

& Cache_SHM::get ( key  ) 

Reimplemented from Cache.

Definition at line 61 of file shm.php.

References _hash_key().

Cache_SHM::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 36 of file shm.php.

References _get_dict(), _hash_key(), and _set_dict().

Cache_SHM::stats (  ) 

Return some usage statistics.

Reimplemented from Cache.

Definition at line 104 of file shm.php.

References _get_dict().


Member Data Documentation

Cache_SHM::$memsize = CACHE_SHM_SIZE

Definition at line 17 of file shm.php.

Cache_SHM::$shmid

Definition at line 16 of file shm.php.

Cache_SHM::$shmkey

Definition at line 15 of file shm.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