use mock to test memcache