fix issue with memcache set executing after promise completed