(PECL memcached >= 0.1.0)
Memcached::getMultiByKey — Retrieve multiple items from a specific server
$server_key
, array $keys
[, string &$cas_tokens
[, int $flags
]] )
Memcached::getMultiByKey() is functionally equivalent to
Memcached::getMulti(), except that the free-form
server_key can be used to map the
keys to a specific server.
server_keyКлюч, идентифицирующий сервер, на котором хранится значение. Вместо хэширования по ключу самого элемента, мы хэшируем по ключу сервера при выборе подключаемого сервера memcached. Данный подход позволяет группировать связанные элементы вместе на одном сервере, что улучшает эффективность групповых операций.
keysArray of keys to retrieve.
cas_tokensThe variable to store the CAS tokens for the found items.
flagsThe flags for the get operation.
Returns the array of found items или FALSE в случае возникновения ошибки.
Используйте при необходимости Memcached::getResultCode().