Add hook for CAS based memcache mergeable

Also made the key type generic.
can we add the same comment here that CAS is used so that it can safely be used when one thread/node does not own a key space.