PHP 8.5.0 Alpha 2 available for testing

Memcached::getMultiByKey

(PECL memcached >= 0.1.0)

Memcached::getMultiByKeyLee varios elementos de un servidor específico

Descripción

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

Memcached::getMultiByKey() es funcionalmente equivalente a Memcached::getMulti(), pero la variable libre server_key puede ser utilizada para dirigir la clave key a un servidor específico.

Parámetros

server_key

The key identifying the server to store the value on or retrieve it from. Instead of hashing on the actual key for the item, we hash on the server key when deciding which memcached server to talk to. This allows related items to be grouped together on a single server for efficiency with multi operations.

keys

Un array de claves a leer.

get_flags

Las opciones de la operación.

Valores devueltos

Devuelve el array de elementos encontrados o false si ocurre un error. Use Memcached::getResultCode() if necessary.

Historial de cambios

Versión Descripción
PECL memcached 3.0.0 El parámetro &cas_tokens ha sido eliminado. Memcached::GET_EXTENDED ha sido añadida y cuando se pasa como flag asegura que los tokens CAS sean recuperados.

Ver también

add a note

User Contributed Notes

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