Axway-API-Management-Plus / API-Gateway-Flush-all-caches

API Gateway : Flush all caches

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

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

API Management Version Compatibilty

This artefact was successfully tested for the following versions:

  • 7.5.1

Install

Creation of Cache Flush Policy :

alt text

Usage

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 !

Bug and Caveats

Nothing identified

Contributing

Please read Contributing.md for details on our code of conduct, and the process for submitting pull requests to us.

Team

alt text Axway Team

License

Apache License 2.0

About

API Gateway : Flush all caches

License:Apache License 2.0


Languages

Language:JavaScript 100.0%