Dutch PHP Conference 2025 - Call For Papers

Memcached::prependByKey

(PECL memcached >= 0.1.0)

Memcached::prependByKeyPrepend data to an existing item on a specific server

Опис

public Memcached::prependByKey(string $server_key, string $key, string $value): ?bool

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

Параметри

server_key

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

key

The key of the item to prepend the data to.

value

The string to prepend.

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

Повертає true у разі успіху або false в разі помилки. Returns null when compression is on.

Помилки/виключення

Returns null and raises an E_WARNING when compression is enabled.

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

add a note

User Contributed Notes

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