how to access data stored in cache in java class?

Not applicable
 
1 1 546
1 REPLY 1

sarthak
Participant V

Hi @saravanan_murugesan

I don't think you can directly access the cache data in a java class.

What you need to do is instead of having a Response cache policy use a lookup cache policy. Use the policy to retrieve any specific entry from the cache as needed and then populate a flow variable with the retrieved value.

You can then access the flow variable in the java callout.

Sarthak