= 2.0.0)Memcached::deleteMultiByKey — Delete multiple items from a specific server說明public Memcached::dele">
(PECL memcached >= 2.0.0)
Memcached::deleteMultiByKey — Delete multiple items from a specific server
$server_key
, array $keys
, int $time
= 0): bool
Memcached::deleteMultiByKey() is functionally equivalent to
Memcached::deleteMulti(), except that the free-form
server_key
can be used to map the
keys
to a specific server.
server_key
本鍵名用于識別儲存和讀取值的服務(wù)器。沒有將實際的鍵名散列到具體的項目,而是在決定與哪一個 memcached 服務(wù)器通信時將其散列為服務(wù)器鍵名。這使得關(guān)聯(lián)的項目在單一的服務(wù)上被組合起來以提高多重操作的效率。
keys
The keys to be deleted.
time
The amount of time the server will wait to delete the items.
成功時返回 true
, 或者在失敗時返回 false
。
The Memcached::getResultCode() will return
Memcached::RES_NOTFOUND
if the key does not exist.