Package burp.mcp.util
Class RequestCache
java.lang.Object
burp.mcp.util.RequestCache
Thread-safe request cache with TTL-based expiry, LRU eviction, and stats.
LRU eviction triggers when size exceeds maxEntries (default 1000).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RequestCache
public RequestCache(int ttlSeconds) -
RequestCache
public RequestCache(int ttlSeconds, int maxEntries)
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) -
isEnabled
public boolean isEnabled() -
put
-
get
-
remove
-
contains
-
size
public int size() -
clear
public void clear() -
getHits
public long getHits() -
getMisses
public long getMisses() -
getEvictions
public long getEvictions() -
shutdown
public void shutdown()
-