Memcached::touch

(PECL memcached >= 2.0.0)

Memcached::touchSet a new expiration on an item

˵��

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

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

����

key

���ڴ洢ֵ�ļ�����

expiration

����ʱ�䣬Ĭ��Ϊ 0�� ������Ϣ��μ�����ʱ����

����ֵ

�ɹ�ʱ���� TRUE�� ������ʧ��ʱ���� FALSE�� ����Ҫ��ʹ�� Memcached::getResultCode()��

�μ�