func set(req *proto.MCRequest, cache *cache.Cache) *proto.MCResponse { cache.Set(req.Key, req.Value, time.Duration(req.Expires)*time.Second) res := proto.NewResStatus(req.Opcode, proto.SUCCESS) return res }