问题 在执行go test的时候发现, 每次执行结果竟然一致, 然后发现是go test有缓存 func TestRedisIncr(t *testing.T) { ctx := context.Background() test(ctx, t, configs.REDIS_TYPE, func(