This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Description
vmemcache_put_if_absent()
If the key is not present in the cache put the key to the cache atomically.
Value existingValue = vmemcache_get(key);
if (existingValue == null) {
vmemcache_put(key, value);
return null;
} else {
return existingValue;
}
But combine the two steps atomically.
From: Xie, Qi [email protected]