Memcached::replace

Memcached::replace

(PECL memcached >= 0.1.0)

Memcached::replaceReplace the item under an existing key

Description

public bool Memcached::replace ( string $key , mixed $value [, int $expiration ] )

Memcached::replace() is similar to Memcached::set(), but the operation fails if the key does not exist on the server.