Can I create multi hash table?

Jehiah Czebotar jehiah at gmail.com
Wed Sep 27 04:54:27 UTC 2006


On 9/27/06, Mingqi Shao <shaomq+memcached at gmail.com> wrote:
>  I want to know what is the difference of set and replace command?
> Can you  share some document of memcache with me? thanks.
>

"set" is almost always what you want, but here are the exact
specifications, from the protocol spec
http://cvs.danga.com/browse.cgi/wcmtools/memcached/doc/protocol.txt?rev=HEAD

  "set" means "store this data".

  "add" means "store this data, but only if the server *doesn't* already
  hold data for this key".

  "replace" means "store this data, but only if the server *does*
  already hold data for this key".

--
Jehiah


More information about the memcached mailing list