Response retention policies for ServiceResponseStore Controls how long service responses are cached and when they're cleaned up

Enumeration Members

Enumeration Members

IMMEDIATE: "immediate"

Clear immediately after handler completes Use for one-time operations with no caching needs

Note: Response remains available during handler execution (including async handlers). Cleanup happens AFTER the handler returns/resolves via ServiceRequestManager.

SINGLE: "single"

Keep until next response for same path Default behavior - previous response replaced on new request

TTL: "ttl"

Keep for specified duration (ms) Automatic cleanup after TTL expires

PERMANENT: "permanent"

Keep until model is destroyed Use for data needed throughout model lifetime

MANUAL: "manual"

Keep until explicitly cleared Manual cleanup required via clearServiceResponse()