Memcached::getMultiByKey

(PECL memcached >= 0.1.0)

Memcached::getMultiByKeyRetrieve multiple items from a specific server

Descrição

public Memcached::getMultiByKey ( string $server_key , array $keys , int $flags = ? ) : array|false

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.

Parâmetros

server_key

A chave identificando o servidor onde armazenar ou recuperar o valor. Em vez de fazer o hash do item, é feito o hash da chave do servidor quando decidindo com qual servidor memcached conectar. Isto permite que itens relacionados sejam agrupados em um único servidor para maior eficiência de operações múltiplas.

keys

Array of keys to retrieve.

flags

The flags for the get operation.

Valor Retornado

Returns the array of found items ou false em caso de falha. Use Memcached::getResultCode() se necessário.

Changelog

Versão Descrição
PECL memcached 3.0.0 The &cas_tokens parameter was removed. The Memcached::GET_EXTENDED was added and when passed as a flag it ensures the CAS tokens to be fetched.

Veja Também

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top