A scenario:
prevents users from visiting the website within a short period of time, causing pressure, and rejects requests if the number of requests is greater than 100 within 10 seconds
A key is A1, which expires after 10 seconds. During this period, A1 uses incr to add 1
every time the user visits it.then, after the moment A1 expires, a user visits and just executes incr A1. As a result, A1 exists again, and there is no expiration time.
in this case, we are in big trouble. Is there a way to solve it?