You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, when I use golang to concurrently operate redis' set type spopN command at around 16000, I have a problem with multiple elements being the same. In the redis official state that spopn will be deleted immediately, and in the java language, I have been verified that there are duplicate elements in concurrent operations using golang, I suspect that either there is no immediate deletion or multiple links get the same element
Hello, when I use golang to concurrently operate redis' set type spopN command at around 16000, I have a problem with multiple elements being the same. In the redis official state that spopn will be deleted immediately, and in the java language, I have been verified that there are duplicate elements in concurrent operations using golang, I suspect that either there is no immediate deletion or multiple links get the same element
The getId func repeats
redis config
func Redis() (redisClient *redis.Client) {
}
Source code example
func test(c *gin.Context{
}
func getId(){
}
result, err := global.Redis.SPopN(context.Background(), global.UniqueIdBuildLockWorkingKey, size).Result()
The text was updated successfully, but these errors were encountered: