Add hook for CAS based memcache mergeable

Also made the key type generic.