This is only supported when binary protocol is enabled.
$obj = new Memcached();
$obj->setOption(\Memcached::OPT_BINARY_PROTOCOL, true);(PECL memcached >= 2.0.0)
Memcached::touch — Define una nueva expiración en un elemento
Memcached::touch() define un nuevo valor de expiración para una clave dada.
keyThe key under which to store the value.
expirationThe expiration time, defaults to 0. See Expiration Times for more info.
Esta función retorna true en caso de éxito o false si ocurre un error.
Use Memcached::getResultCode() if necessary.
This is only supported when binary protocol is enabled.
$obj = new Memcached();
$obj->setOption(\Memcached::OPT_BINARY_PROTOCOL, true);