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 qi.xie@intel.com
vmemcache_put_if_absent()
If the key is not present in the cache put the key to the cache atomically.
But combine the two steps atomically.
From: Xie, Qi qi.xie@intel.com