The set and replace functions in MemcachedClient are asynchronous and return Futures. You must call .get() on the returned object in order to get it to block until the operation is completed.
mMemcachedClient.set(String.valueOf(hg.hash("setOfKeys")), 7200, keys).get();
You should also check the returned value of the statement above in order to make sure the operation was successful.