-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
-
DataGrid Sprint #63, DataGrid Sprint #64
-
Undefined
Example use case:
If I want to create a limit of 10 >requests per minute, I create a counter with a TTL of 1 minute and with an initial value of 10. Each time someone makes a request that affects this limit, the counter is decremented and the request is authorized as long as the value is > 0. When it is 0, the request is considered to be limited and is rejected until the key expires. When the key has expired and the next request arrives, the same TTL and initial value is recreated.
We have already bounded counter which throws an Exception when the boundary is reached. We just need to add TTL to the cache entry.
- is related to
-
ISPN-16810 lifespan does not work for remote counters
- New