Clear rate limit records for the given IP. This is primarily used for testing.
(ip: str)
| 49 | |
| 50 | |
| 51 | def clear(ip: str) -> None: |
| 52 | """ |
| 53 | Clear rate limit records for the given IP. |
| 54 | This is primarily used for testing. |
| 55 | """ |
| 56 | key = _key(ip) |
| 57 | cache.delete(key) |
| 58 | |
| 59 | |
| 60 | def get_count(ip: str) -> int: |