php8.5
Home/ Manual/ memcached / memcached/ Memcached::appendByKey

Memcached::appendByKey

PHP function Edit on GitHub ✎

(PECL memcached >= 0.1.0)

Append data to an existing item on a specific server

Description

Memcached::appendByKey(string $server_key, string $key, string $value): bool|null

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

Parameters

server_key

Server_key

key

Key

value

The string to append.

Return Values

Success Returns null when compression is on.

Errors/Exceptions

Returns null and raises an E_WARNING when compression is enabled.

See Also

  • Memcached::append
  • Memcached::prepend

Source: reference/memcached/memcached/appendbykey.xml · from the official PHP manual (php/doc-en)