示例#1
0
func doDecr (id string, signal chan int, client redis.Client, cnt int)  {
	key := "ctr-" + id;
	for i:=0;i<cnt;i++ { 
		client.Decr(key);
	}
	signal <- 1;
}