set and get protocol compatible with memcache