Memcached::getDelayedByKey

(PECL memcached >= 0.1.0)

Memcached::getDelayedByKeyLee varios elementos en un servidor

Descripción

public Memcached::getDelayedByKey(
    string $server_key,
    array $keys,
    bool $with_cas = false,
    ?callable $value_cb = null
): bool

Memcached::getDelayedByKey() es funcionalmente equivalente a Memcached::getDelayed(), 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.

with_cas

Si también se deben leer los CAS.

value_cb

Una función de retrollamada de resultados, o null.

Valores devueltos

Esta función retorna true en caso de éxito o false si ocurre un error. Use Memcached::getResultCode() if necessary.

Ver también

add a note

User Contributed Notes

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