github.com/ulule/limiter/v3@v3.11.3-0.20230613131926-4cb9c1da4633/defaults.go (about) 1 package limiter 2 3 import "time" 4 5 const ( 6 // DefaultPrefix is the default prefix to use for the key in the store. 7 DefaultPrefix = "limiter" 8 9 // DefaultMaxRetry is the default maximum number of key retries under 10 // race condition (mainly used with database-based stores). 11 DefaultMaxRetry = 3 12 13 // DefaultCleanUpInterval is the default time duration for cleanup. 14 DefaultCleanUpInterval = 30 * time.Second 15 )