Open chetan-codehub opened 3 years ago
At any point if we want to clear data (that is created and used by rate_limit) from redis, how to do it?
something like :
rateLimiter.Clear("key") or rateLimiter.Flush()
rateLimiter.Clear("key")
rateLimiter.Flush()
@chetan-codehub, I suppose it should be like this:
rateLimiter := redis_rate.NewLimiter(rdb) ctx := context.Background() err := rateLimiter.Reset(ctx, "key")
At any point if we want to clear data (that is created and used by rate_limit) from redis, how to do it?
something like :
rateLimiter.Clear("key")
orrateLimiter.Flush()