MCPcopy
hub / github.com/redis/go-redis / generateUniqueID

Function generateUniqueID

options.go:31–34  ·  view source on GitHub ↗

generateUniqueID generates a short unique identifier for pool names using auto-increment. This makes it easier to identify and track pools in order of creation.

()

Source from the content-addressed store, hash-verified

29// generateUniqueID generates a short unique identifier for pool names using auto-increment.
30// This makes it easier to identify and track pools in order of creation.
31func generateUniqueID() string {
32 id := poolIDCounter.Add(1)
33 return strconv.FormatUint(id, 10)
34}
35
36// Limiter is the interface of a rate limiter or a circuit breaker.
37type Limiter interface {

Callers 3

NewClientFunction · 0.70
NewFailoverClientFunction · 0.70
NewSentinelClientFunction · 0.70

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected