Package burp.mcp.util

Class RequestCache

java.lang.Object
burp.mcp.util.RequestCache

public class RequestCache extends Object
Thread-safe request cache with TTL-based expiry, LRU eviction, and stats. LRU eviction triggers when size exceeds maxEntries (default 1000).
  • 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

      public void put(String key, String value)
    • get

      public String get(String key)
    • remove

      public void remove(String key)
    • contains

      public boolean contains(String key)
    • size

      public int size()
    • clear

      public void clear()
    • getHits

      public long getHits()
    • getMisses

      public long getMisses()
    • getEvictions

      public long getEvictions()
    • shutdown

      public void shutdown()