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

Memcached::prependByKey

PHP function Edit on GitHub ✎

(PECL memcached >= 0.1.0)

Prepend data to an existing item on a specific server

Description

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

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.

Parameters

server_key

Server_key

key

The key of the item to prepend the data to.

value

The string to prepend.

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::prepend
  • Memcached::append

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