property OnGetFromCache: TScRestRequestEvent;
type
TScRestRequestEvent = procedure(const RestRequest: TScRestRequest) of object;
Description
Is triggered only when the request has the following properties: CacheResponse = True and Method = rmGET.
This event occurs before the request is executed and allows you to prevent execution by loading the request result from a local cache. To do so, call the RestResponse.LoadFromCache method within the event handler.
RestRequest represents the request to the endpoint that will be executed if the result isn't loaded from the cache.