On Oct 26, 6:57 am, nooby <[email protected]> wrote:

>   Obviously this means that whatever value was there in the first
> place is not important so 'replace' operation should do the trick.
> That is, replace the value if and only if it already exists there.

  I wouldn't recommend the replace operation in general.  All it means
is ``only fail if I'm not destroying data somewhere.''  You can't make
any assumptions as to what data is being destroyed.

  Any place where you'd use replace, you probably want either plain
set or set with a CAS.

Reply via email to