Memcached
php 手册 | 脚本学堂 | 脚本编程 | 网站编程 | 系统管理 | 服务器配置 | 数据库管理 | Php教程 | python教程 | 正则表达式 | 批处理脚本 | Centos教程 | Linux基础教程

The Memcached class

简介

Represents a connection to a set of memcached servers.

Class synopsis

Memcached
Memcached {
__construct ([ string $persistent_id ] )
public bool add ( string $key , mixed $value [, int $expiration ] )
public bool addByKey ( string $server_key , string $key , mixed $value [, int $expiration ] )
public bool addServer ( string $host , int $port [, int $weight ] )
public bool addServers ( array $servers )
public bool append ( string $key , string $value )
public bool appendByKey ( string $server_key , string $key , string $value )
public bool cas ( double $cas_token , string $key , mixed $value [, int $expiration ] )
public bool casByKey ( double $cas_token , string $server_key , string $key , mixed $value [, int $expiration ] )
public bool decrement ( string $key [, int $offset ] )
public bool delete ( string $key [, int $time ] )
public bool deleteByKey ( string $server_key , string $key [, int $time ] )
public mixed fetch ( void )
public mixed fetchAll ( void )
public bool flush ([ int $delay ] )
public mixed get ( string $key [, callback $cache_cb [, double &$cas_token ]] )
public mixed getByKey ( string $server_key , string $key [, callback $cache_cb [, double &$cas_token ]] )
public bool getDelayed ( array $keys [, bool $with_cas [, callback $value_cb ]] )
public bool getDelayedByKey ( string $server_key , array $keys [, bool $with_cas [, callback $value_cb ]] )
public mixed getMulti ( array $keys [, array &$cas_tokens ] )
public void getMultiByKey ( string $server_key , array $keys [, string &$cas_tokens ] )
public void getOption ( int $option )
public int getResultCode ( void )
public array getServerByKey ( string $server_key )
public array getServerList ( void )
public array getStats ( void )
public bool increment ( string $key [, int $offset ] )
public bool prepend ( string $key , string $value )
public bool prependByKey ( string $server_key , string $key , string $value )
public bool replace ( string $key , mixed $value [, int $expiration ] )
public bool replaceByKey ( string $server_key , string $key , mixed $value [, int $expiration ] )
public bool set ( string $key , mixed $value [, int $expiration ] )
public bool set ( string $server_key , string $key , mixed $value [, int $expiration ] )
public bool setMulti ( array $items [, int $expiration ] )
public bool setMultiByKey ( string $server_key , array $items [, int $expiration ] )
public void setOption ( int $option , mixed $value )
}

Table of Contents


Memcached
php 手册 | 脚本学堂 | 脚本编程 | 网站编程 | 系统管理 | 服务器配置 | 数据库管理 | Php教程 | python教程 | 正则表达式 | 批处理脚本 | Centos教程 | Linux基础教程