Exemplo n.º 1
0
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
}