We have a webapp which uses memcache to store objects temporally. We are adding background jobs to cleanup the cache (not based on time based expiration that comes with memcache). Since we have multiple instances of the webapp running, we want to make sure that only one instance is doing the cleanup at any point. So we decided to keep