PHP Australia Conference 2015

Memcached::deleteByKey

(PECL memcached >= 0.1.0)

Memcached::deleteByKeyDelete an item from a specific server

설명

public bool Memcached::deleteByKey ( string $server_key , string $key [, int $time = 0 ] )

Memcached::deleteByKey() is functionally equivalent to Memcached::delete(), except that the free-form server_key can be used to map the key to a specific server.

인수

server_key

값을 저장할 서버를 인식하는 키.

key

The key to be deleted.

time

The amount of time the server will wait to delete the item.

반환값

성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다. The Memcached::getResultCode() will return Memcached::RES_NOTFOUND if the key does not exist.

참고

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top