Is memcache append () internally atomic?

Basically, if two processes try to add the same key at the same time, is it likely that it will ever overwrite the other?

eg:.

Process 1 adds "a" to key "k"

Process 2 adds "b" to key "k"

Do we guarantee the presence of two characters (either "ab" or "ba") as a value after performing these steps?

+3
source share
1 answer

Yes, memcached does not read / write to add, so concurrency is provided

+3
source

Source: https://habr.com/ru/post/1788371/


All Articles