Freelance PHP programmer India | Freelance web developer india | Web development India | web developer CV india | Compiling PHP and Apache 2 from source on Linux
Memcached
PHP Manual

The Memcached class

Introduction

Description of the class.

Class synopsis

Memcached
Memcached {
/* Constants */
const integer Memcached::OPT_COMPRESSION =-1001 ;
const integer Memcached::OPT_PREFIX_KEY =-1002 ;
const integer Memcached::OPT_HASH =2 ;
const integer Memcached::HASH_DEFAULT =0 ;
const integer Memcached::HASH_MD5 =1 ;
const integer Memcached::HASH_CRC =2 ;
const integer Memcached::HASH_FNV1_64 =3 ;
const integer Memcached::HASH_FNV1A_64 =4 ;
const integer Memcached::HASH_FNV1_32 =5 ;
const integer Memcached::HASH_FNV1A_32 =6 ;
const integer Memcached::HASH_HSIEH =7 ;
const integer Memcached::HASH_MURMUR =8 ;
const integer Memcached::OPT_DISTRIBUTION =9 ;
const integer Memcached::DISTRIBUTION_MODULA =0 ;
const integer Memcached::OPT_BUFFER_WRITES =10 ;
const integer Memcached::OPT_BINARY_PROTOCOL =18 ;
const integer Memcached::OPT_NO_BLOCK =0 ;
const integer Memcached::OPT_TCP_NODELAY =1 ;
const integer Memcached::OPT_CONNECT_TIMEOUT =14 ;
const integer Memcached::OPT_RETRY_TIMEOUT =15 ;
const integer Memcached::OPT_SEND_TIMEOUT =19 ;
const integer Memcached::OPT_RECV_TIMEOUT =15 ;
const integer Memcached::OPT_POLL_TIMEOUT =8 ;
const integer Memcached::OPT_CACHE_LOOKUPS =6 ;
const integer Memcached::RES_SUCCESS =0 ;
const integer Memcached::RES_FAILURE =1 ;
const integer Memcached::RES_PROTOCOL_ERROR =8 ;
const integer Memcached::RES_CLIENT_ERROR =9 ;
const integer Memcached::RES_SERVER_ERROR =10 ;
const integer Memcached::RES_WRITE_FAILURE =5 ;
const integer Memcached::RES_DATA_EXISTS =12 ;
const integer Memcached::RES_NOTSTORED =14 ;
const integer Memcached::RES_NOTFOUND =16 ;
const integer Memcached::RES_PARTIAL_READ =18 ;
const integer Memcached::RES_SOME_ERRORS =19 ;
const integer Memcached::RES_NO_SERVERS =20 ;
const integer Memcached::RES_END =21 ;
const integer Memcached::RES_ERRNO =25 ;
const integer Memcached::RES_BUFFERED =31 ;
const integer Memcached::RES_TIMEOUT =30 ;
const integer Memcached::RES_BAD_KEY_PROVIDED =32 ;
const integer Memcached::RES_PAYLOAD_FAILURE =-1001 ;
/* Methods */
public void add ( string $key , string $value [, string $expiration ] )
public void addByKey ( string $server_key , string $key , string $value [, string $expiration ] )
public void addServer ( string $host , string $port [, string $weight ] )
public void append ( string $key , string $value [, string $expiration ] )
public void appendByKey ( string $server_key , string $key , string $value [, string $expiration ] )
public void cas ( string $cas_token , string $key , string $value [, string $expiration ] )
public void casByKey ( string $cas_token , string $server_key , string $key , string $value [, string $expiration ] )
__construct ([ string $persistent_id ] )
public void decrement ( string $key [, string $offset ] )
public void delete ( string $key [, string $expiration ] )
public void deleteByKey ( string $server_key , string $key [, string $expiration ] )
public void fetch ( void )
public void fetchAll ( void )
public void flush ([ string $expiration ] )
public void get ( string $key [, string $cache_cb [, string &$cas_token ]] )
public void getByKey ( string $server_key , string $key [, string $cache_cb [, string &$cas_token ]] )
public void getDelayed ( array $keys [, string $with_cas [, string $value_cb ]] )
public void getDelayedByKey ( string $server_key , array $keys [, string $with_cas [, string $value_cb ]] )
public void getMulti ( array $keys [, string &$cas_tokens ] )
public void getMultiByKey ( string $server_key , array $keys [, string &$cas_tokens ] )
public void getOption ( string $option )
public void getResultCode ( void )
public void getServerByKey ( string $server_key )
public void getServerList ( void )
public void getStats ( void )
public void increment ( string $key [, string $offset ] )
public void prepend ( string $key , string $value [, string $expiration ] )
public void prependByKey ( string $server_key , string $key , string $value [, string $expiration ] )
public void replace ( string $key , string $value [, string $expiration ] )
public void replaceByKey ( string $server_key , string $key , string $value [, string $expiration ] )
public void set ( string $key , string $value [, string $expiration ] )
public void setByKey ( string $server_key , string $key , string $value [, string $expiration ] )
public void setMulti ( array $entries [, string $expiration ] )
public void setMultiByKey ( string $server_key , array $entries [, string $expiration ] )
public void setOption ( string $option , string $value )
}

Table of Contents


Memcached
PHP Manual