Axway API Gateway propose a “Cache” Feature You can cache a value for a later re-use This Java script is used to flush a specific cache or all caches
This artefact was successfully tested for the following versions:
- 7.5.1
Creation of Cache Flush Policy :
Some remarks about the policy :
- First of all, make sure you selected the “Rhino engine JRE7 and earlier” option
- To get an instance of the EHcache’s CacheManager, the script has to get first an instance of a cache
- It uses the “Local maximum messages” (one of the default caches)
- When used in production, it is safer to use a dedicated cache so that if default caches are removed, the scripts still works
- The script returns true, if caches have been flushed. False otherwise. Make sure to reflect this as HTTP Status code !
Nothing identified
Please read Contributing.md for details on our code of conduct, and the process for submitting pull requests to us.