onPHP

PeclMemcached Class Reference

 

PeclMemcached Class Reference
[Application-wide cache subsystem]

Connector for PECL's Memcache extension by Antony Dovgal. More...

Inheritance diagram for PeclMemcached:

List of all members.

Public Member Functions

 __construct ($host=Memcached::DEFAULT_HOST, $port=Memcached::DEFAULT_PORT)
 __destruct ()
 clean ()
 
Returns:
PeclMemcached

 getList ($indexes)
 get ($index)
 delete ($index)
 append ($key, $data)

Static Public Member Functions

static create ($host=Memcached::DEFAULT_HOST, $port=Memcached::DEFAULT_PORT)
 
Returns:
PeclMemcached


Public Attributes

const DEFAULT_PORT = 11211
const DEFAULT_HOST = '127.0.0.1'

Protected Member Functions

 store ($action, $key, $value, $expires=Cache::EXPIRES_MEDIUM)

Private Attributes

 $instance = null


Detailed Description

Connector for PECL's Memcache extension by Antony Dovgal.

See also:
http://tony2001.phpclub.net/

http://pecl.php.net/package/memcache

Definition at line 21 of file PeclMemcached.class.php.


Constructor & Destructor Documentation

PeclMemcached::__construct ( host = Memcached::DEFAULT_HOST,
port = Memcached::DEFAULT_PORT 
)

Definition at line 39 of file PeclMemcached.class.php.

PeclMemcached::__destruct (  ) 

Definition at line 59 of file PeclMemcached.class.php.


Member Function Documentation

static PeclMemcached::create ( host = Memcached::DEFAULT_HOST,
port = Memcached::DEFAULT_PORT 
) [static]

Returns:
PeclMemcached

Definition at line 31 of file PeclMemcached.class.php.

PeclMemcached::clean (  ) 

Returns:
PeclMemcached

Reimplemented from CachePeer.

Definition at line 73 of file PeclMemcached.class.php.

PeclMemcached::getList ( indexes  ) 

Reimplemented from CachePeer.

Definition at line 84 of file PeclMemcached.class.php.

PeclMemcached::get ( index  ) 

Reimplemented from CachePeer.

Definition at line 89 of file PeclMemcached.class.php.

References Assert::isUnreachable().

Here is the call graph for this function:

PeclMemcached::delete ( index  ) 

Reimplemented from CachePeer.

Definition at line 102 of file PeclMemcached.class.php.

References Assert::isUnreachable().

Here is the call graph for this function:

PeclMemcached::append ( key,
data 
)

Reimplemented from CachePeer.

Definition at line 113 of file PeclMemcached.class.php.

References Assert::isUnreachable().

Here is the call graph for this function:

PeclMemcached::store ( action,
key,
value,
expires = Cache::EXPIRES_MEDIUM 
) [protected]

Reimplemented from CachePeer.

Definition at line 124 of file PeclMemcached.class.php.

References Assert::isUnreachable().

Here is the call graph for this function:


Member Data Documentation

Definition at line 23 of file PeclMemcached.class.php.

const PeclMemcached::DEFAULT_HOST = '127.0.0.1'

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

PeclMemcached::$instance = null [private]

Definition at line 26 of file PeclMemcached.class.php.


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

generated by doxygen-1.5.4
for onPHP at Mon Jan 21 03:40:29 2008