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
// Or use a in-memory store with a goroutine which clears expired keys every 30 seconds
store := limiter.NewMemoryStore("prefix_for_keys", 30*time.Second)
According to the code it doesn't take any arguments, so this should just read:
// Or use a in-memory store
store := limiter.NewMemoryStore()
// Alternatively, use a in-memory store with some extra configuration
store := limiter.NewMemoryStoreWithOptions(???)
Something like that anyway.
The text was updated successfully, but these errors were encountered:
Docs are wrong.
According to the code it doesn't take any arguments, so this should just read:
Something like that anyway.
The text was updated successfully, but these errors were encountered: