MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / clear

Function clear

app/api/agentops/common/rate_limit.py:51–57  ·  view source on GitHub ↗

Clear rate limit records for the given IP. This is primarily used for testing.

(ip: str)

Source from the content-addressed store, hash-verified

49
50
51def 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
60def get_count(ip: str) -> int:

Callers

nothing calls this directly

Calls 2

_keyFunction · 0.85
deleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…