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

Memcached::touchByKey

PHP function Edit on GitHub ✎

(PECL memcached >= 2.0.0)

Set a new expiration on an item on a specific server

Description

Memcached::touchByKey(string $server_key, string $key, int $expiration = 0): bool

Memcached::touchByKey() is functionally equivalent to Memcached::touch, 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

expiration

Expiration

Return Values

Success Getresultcode

See Also

  • Memcached::touch

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