Dutch PHP Conference 2025 - Call For Papers

Memcached::getDelayedByKey

(PECL memcached >= 0.1.0)

Memcached::getDelayedByKeyRequest multiple items from a specific server

Опис

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

Memcached::getDelayedByKey() is functionally equivalent to Memcached::getDelayed(), except that the free-form server_key can be used to map the keys to a specific server.

Параметри

server_key

Ключ, що визначає сервер, на якому зберігатиметься значення або з якого його можна отримати. Замість гешування ключа елемента, гешується ключ сервера, з яким буде взаємодіяти memcached. Це дозволяє об'єднувати пов'язані елементи на єдиному сервері для пришвидшення одночасних операцій.

keys

Array of keys to request.

with_cas

Whether to request CAS token values also.

value_cb

The result callback or null.

Значення, що повертаються

Повертає true у разі успіху або false в разі помилки. За необхідності використовується Memcached::getResultCode().

Прогляньте також

add a note

User Contributed Notes

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