= 2.0.0)Memcached::touch — Set a new expiration on an item說(shuō)明public Memcached::touch(string $key, int $expiration): bo">
(PECL memcached >= 2.0.0)
Memcached::touch — Set a new expiration on an item
$key
, int $expiration
): boolMemcached::touch() sets a new expiration value on the given key.
成功時(shí)返回 true
, 或者在失敗時(shí)返回 false
。
如需要?jiǎng)t使用 Memcached::getResultCode()。