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
varredback=require('redback').createClient();varratelimit=redback.createRateLimit('requests',{bucket_span: 6,bucket_interval: 1,subject_expiry: 12});// if request 1 times per 3 secondssetInterval(function(){ratelimit.add('127.0.0.1');},3000);
bucket 0 and 3 will not be deleted.
now I'd like to get the count on bucket 0, it's 2.
actually I just hit 1 times in this second, or in last 2 seconds.
The text was updated successfully, but these errors were encountered:
I found the same issue.For example:I increment the 0 bulk,then I wait for a span time and add , suppose it increment the 1 bulk.I count the visit time it returns 2. In fact, the count in 0 bulk is out of date.
code
redis monitor
bucket 0 and 3 will not be deleted.
now I'd like to get the count on bucket 0, it's 2.
actually I just hit 1 times in this second, or in last 2 seconds.
The text was updated successfully, but these errors were encountered: