Memcached類
(PECL memcached >= 0.1.0)
簡介
表徵到memcached服務集群的連線。
類摘要
class Memcached
{
__construct(string
$persistent_id
= ?)public casByKey(
float
string
string
mixed
int
): bool
float
$cas_token
,string
$server_key
,string
$key
,mixed
$value
,int
$expiration
= ?): bool
public decrementByKey(
string
string
int
int
int
): int|false
string
$server_key
,string
$key
,int
$offset
= 1,int
$initial_value
= 0,int
$expiry
= 0): int|false
public getByKey(
string
string
callback
float
): mixed
string
$server_key
,string
$key
,callback
$cache_cb
= ?,float
&$cas_token
= ?): mixed
public getDelayedByKey(
string
array
bool
callback
): bool
string
$server_key
,array
$keys
,bool
$with_cas
= ?,callback
$value_cb
= ?): bool
public getMultiByKey(
string
array
string
int
): array
string
$server_key
,array
$keys
,string
&$cas_tokens
= ?,int
$flags
= ?): array
public incrementByKey(
string
string
int
int
int
): int|false
}string
$server_key
,string
$key
,int
$offset
= 1,int
$initial_value
= 0,int
$expiry
= 0): int|false
目錄
- Memcached::add — 向一個新的key下面增加一個元素
- Memcached::addByKey — 在指定伺服器上的一個新的key下增加一個元素
- Memcached::addServer — 向伺服器池中增加一個伺服器
- Memcached::addServers — 向伺服器池中增加多臺伺服器
- Memcached::append — 向已存在元素后追加數據
- Memcached::appendByKey — 向指定伺服器上已存在元素后追加數據
- Memcached::cas — 比較並交換值
- Memcached::casByKey — 在指定伺服器上比較並交換值
- Memcached::__construct — 建立一個Memcached實例
- Memcached::decrement — 減小數值元素的值
- Memcached::decrementByKey — Decrement numeric item's value, stored on a specific server
- Memcached::delete — 刪除一個元素
- Memcached::deleteByKey — 從指定的伺服器刪除一個元素
- Memcached::deleteMulti — Delete multiple items
- Memcached::deleteMultiByKey — Delete multiple items from a specific server
- Memcached::fetch — 抓取下一個結果
- Memcached::fetchAll — 抓取所有剩餘的結果
- Memcached::flush — 作廢快取中的所有元素
- Memcached::get — 檢索一個元素
- Memcached::getAllKeys — Gets the keys stored on all the servers
- Memcached::getByKey — 從特定的伺服器檢索元素
- Memcached::getDelayed — 請求多個元素
- Memcached::getDelayedByKey — 從指定的伺服器上請求多個元素
- Memcached::getMulti — 檢索多個元素
- Memcached::getMultiByKey — 從特定伺服器檢索多個元素
- Memcached::getOption — 獲取Memcached的選項值
- Memcached::getResultCode — 返回最後一次操作的結果程式碼
- Memcached::getResultMessage — 返回最後一次操作的結果描述訊息
- Memcached::getServerByKey — 獲取一個key所對映的伺服器資訊
- Memcached::getServerList — 獲取伺服器池中的伺服器列表
- Memcached::getStats — 獲取伺服器池的統計資訊
- Memcached::getVersion — 獲取伺服器池中所有伺服器的版本資訊
- Memcached::increment — 增加數值元素的值
- Memcached::incrementByKey — Increment numeric item's value, stored on a specific server
- Memcached::isPersistent — Check if a persitent connection to memcache is being used
- Memcached::isPristine — Check if the instance was recently created
- Memcached::prepend — 向一個已存在的元素前面追加數據
- Memcached::prependByKey — Prepend data to an existing item on a specific server
- Memcached::quit — 關閉所有打開的鏈接。
- Memcached::replace — 替換已存在key下的元素
- Memcached::replaceByKey — Replace the item under an existing key on a specific server
- Memcached::resetServerList — Clears all servers from the server list
- Memcached::set — 儲存一個元素
- Memcached::setByKey — 將元素儲存到指定的伺服器上
- Memcached::setMulti — 儲存多個元素
- Memcached::setMultiByKey — Store multiple items on a specific server
- Memcached::setOption — 設定一個memcached選項
- Memcached::setOptions — Set Memcached options
- Memcached::setSaslAuthData — Set the credentials to use for authentication
- Memcached::touch — Set a new expiration on an item
- Memcached::touchByKey — Set a new expiration on an item on a specific server