SharedMemory Class Reference
[Application-wide cache subsystem]

Sys-V shared memory cache. More...

Inheritance diagram for SharedMemory:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($defaultSize=self::DEFAULT_SEGMENT_SIZE, $customSized=array())
 
Returns:
SharedMemory

 __destruct ()
 get ($key)
 delete ($key)
 isAlive ()
 clean ()
 
Returns:
SharedMemory


Static Public Member Functions

static create ($defaultSize=self::DEFAULT_SEGMENT_SIZE, $customSized=array())
 
Returns:
SharedMemory


Public Attributes

const INDEX_SEGMENT = 12345678
const DEFAULT_SEGMENT_SIZE = 4194304

Protected Member Functions

 store ($action, $key, &$value, $expires=0)

Private Member Functions

 getSegment ()
 stringToInt ($string)

Private Attributes

 $defaultSize = null
 $customSized = array()

Static Private Attributes

static $attached = array()


Detailed Description

Sys-V shared memory cache.

Definition at line 18 of file SharedMemory.class.php.


Constructor & Destructor Documentation

SharedMemory::__construct ( defaultSize = self::DEFAULT_SEGMENT_SIZE,
customSized = array() 
)

Returns:
SharedMemory

Definition at line 43 of file SharedMemory.class.php.

References $customSized, and $defaultSize.

SharedMemory::__destruct (  ) 

Definition at line 52 of file SharedMemory.class.php.


Member Function Documentation

static SharedMemory::create ( defaultSize = self::DEFAULT_SEGMENT_SIZE,
customSized = array() 
) [static]

Returns:
SharedMemory

Definition at line 32 of file SharedMemory.class.php.

References $customSized, and $defaultSize.

SharedMemory::get ( key  ) 

Reimplemented from CachePeer.

Definition at line 85 of file SharedMemory.class.php.

References getSegment(), and stringToInt().

Here is the call graph for this function:

SharedMemory::delete ( key  ) 

Reimplemented from CachePeer.

Definition at line 109 of file SharedMemory.class.php.

References getSegment(), and stringToInt().

Here is the call graph for this function:

SharedMemory::isAlive (  ) 

Reimplemented from CachePeer.

Definition at line 122 of file SharedMemory.class.php.

SharedMemory::clean (  ) 

Returns:
SharedMemory

Reimplemented from CachePeer.

Definition at line 131 of file SharedMemory.class.php.

References stringToInt().

Here is the call graph for this function:

SharedMemory::store ( action,
key,
&$  value,
expires = 0 
) [protected]

Reimplemented from CachePeer.

Definition at line 156 of file SharedMemory.class.php.

References getSegment(), and stringToInt().

Here is the call graph for this function:

SharedMemory::getSegment (  )  [private]

Definition at line 183 of file SharedMemory.class.php.

References SelectivePeer::getClassName(), and stringToInt().

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

Here is the call graph for this function:

SharedMemory::stringToInt ( string  )  [private]

Definition at line 199 of file SharedMemory.class.php.

Referenced by clean(), delete(), get(), getSegment(), and store().


Member Data Documentation

const SharedMemory::INDEX_SEGMENT = 12345678

Definition at line 20 of file SharedMemory.class.php.

const SharedMemory::DEFAULT_SEGMENT_SIZE = 4194304

Definition at line 22 of file SharedMemory.class.php.

SharedMemory::$defaultSize = null [private]

Definition at line 24 of file SharedMemory.class.php.

Referenced by __construct(), and create().

SharedMemory::$customSized = array() [private]

Definition at line 25 of file SharedMemory.class.php.

Referenced by __construct(), and create().

SharedMemory::$attached = array() [static, private]

Definition at line 27 of file SharedMemory.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:27 2007 for onPHP by  doxygen 1.5.4