lib/common/authenticate.js
function getCacheRefreshInterval() {
    var value = parseInt(process.env[CACHE_REFRESH_KEY]);

    // Should we 0 here to invalidate the cache immediately?
    if (value && !isNaN(value) && value > 0) {
      return value;
    }

    return DEFAULT_CACHE_REFRESH_SECONDS;
  }
function getCacheRefreshInterval() {
    var value = parseInt(process.env[CACHE_REFRESH_KEY]);

    // Should we 0 here to invalidate the cache immediately?
    if (value && !isNaN(value) && value > 0) {
      return value;
    }

    return DEFAULT_CACHE_REFRESH_SECONDS;
  }
function getCacheRefreshInterval ( ) { var value = parseInt ( process . env [ CACHE_REFRESH_KEY ] ) ; // Should we 0 here to invalidate the cache immediately? if ( value && ! isNaN ( value ) && value > 0 ) { return value ; } return DEFAULT_CACHE_REFRESH_SECONDS ; }
The refresh interval of the authentication cache should be configurable. Since
this is running inside a cloud app the best option is th use an environment
variable.
@returns {*}
The refresh interval of the authentication cache should be configurable . Since this is running inside a cloud app the best option is th use an environment variable .