SetRESTCache method: Message class
Syntax
SetRESTCache(&futureDT)
Description
Use the SetRESTCache method to set server-side caching for provider REST GET service operations the OnRequest PeopleCode event. When you set server-side caching, the system caches the entire transactional data for the specific URI resource. Subsequent requests from a client with an identical resource will result in the data being pulled from the cache. The cache expires on the date and time specified by the &futureDT parameter.
You can delete the cache at any time by calling the DeleteRESTCache method.
Parameters
| Parameter | Description |
|---|---|
|
&futureDT |
Specifies a future date and time as a DateTime variable. |
Returns
None.
Example
Local Message &MSG;
Local datetime &dt;
Local string &op, &ver;
&MSG.SetRESTCache(&dt);
&b_ret = %IntBroker.DeleteRESTCache(&op, &ver);
Related Topics