// 初始化 func Init() { // test // addr := "127.0.0.1:6380" // keyExpire, err := strconv.Atoi("25200") // checkError(err) addr := config.GroupRedisAddr keyExpire, err := strconv.Atoi(config.GroupRedisKeyExpire) checkError(err) groupmsg_redislist = redislist.NewRedisListHelper(addr, keyExpire) groupmsg_redislist.Init() }
// 初始化 func Init() { // test // addr := "127.0.0.1:6379" // keyExpire, err := strconv.Atoi("604800") // checkError(err) addr := config.C2CRedisAddr keyExpire, err := strconv.Atoi(config.C2CRedisKeyExpire) checkError(err) c2cmsg_redislist = redislist.NewRedisListHelper(addr, keyExpire) c2cmsg_redislist.Init() }
// 初始化 func Init() { // test // addr := "127.0.0.1:6381" // keyExpire, err := strconv.Atoi("5") // checkError(err) addr := config.UuidGroupRedisAddr keyExpire, err := strconv.Atoi(config.UuidGroupRedisKeyExpire) checkError(err) uuid_redislist = redislist.NewRedisListHelper(addr, keyExpire) uuid_redislist.Init() // test // addr = "127.0.0.1:6382" // keyExpire, err = strconv.Atoi("5") // checkError(err) addr = config.GroupUuidRedisAddr keyExpire, err = strconv.Atoi(config.GroupUuidRedisKeyExpire) checkError(err) groupid_redislist = redislist.NewRedisListHelper(addr, keyExpire) groupid_redislist.Init() }