Memcache::replace -- Replace value of the existing item
Syntax
bool Memcache::replace ( string key, mixed var [, int flag [, int expire]] )
Memcache::replace() should be used to replace value of
existing item with key. In case if item with such
key doesn't exists, Memcache::replace() returns
FALSE. For the rest Memcache::replace() behaves
similarly to Memcache::set().
Also you can use memcache_replace() function.
See example below.
/* procedural API */ memcache_replace($memcache_obj, "test_key", "some variable", false, 30);
/* OO API */ $memcache_obj->replace("test_key", "some variable", false, 30);
?>
Returns TRUE on success or FALSE on failure.
See also
Memcache::set(),
Memcache::add().
Php memcache replace Function syntax tag
memcache replace php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php memcache replace syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.