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

Memcached::touch

PHP function Edit on GitHub ✎

(PECL memcached >= 2.0.0)

Set a new expiration on an item

Description

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

Memcached::touch() sets a new expiration value on the given key.

Parameters

key

Key

expiration

Expiration

Return Values

Success Getresultcode

See Also

  • Memcached::touchByKey

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