build a memcache system step by step