modules/@themost/web/cache.js
function DefaultCacheStrategy(app) {
    DefaultCacheStrategy.super_.bind(this)(app);
    //set absoluteExpiration (from application configuration)
    var expiration = CACHE_ABSOLUTE_EXPIRATION;
    var absoluteExpiration = LangUtils.parseInt(app.getConfiguration().getSourceAt('settings/cache/absoluteExpiration'));
    if (absoluteExpiration>=0) {
        expiration = absoluteExpiration;
    }
    this[rawCacheProperty] = new NodeCache( {
        stdTTL:expiration
    });
}
function DefaultCacheStrategy(app) {
    DefaultCacheStrategy.super_.bind(this)(app);
    //set absoluteExpiration (from application configuration)
    var expiration = CACHE_ABSOLUTE_EXPIRATION;
    var absoluteExpiration = LangUtils.parseInt(app.getConfiguration().getSourceAt('settings/cache/absoluteExpiration'));
    if (absoluteExpiration>=0) {
        expiration = absoluteExpiration;
    }
    this[rawCacheProperty] = new NodeCache( {
        stdTTL:expiration
    });
}
function DefaultCacheStrategy ( app ) { DefaultCacheStrategy . super_ . bind ( this ) ( app ) ; //set absoluteExpiration (from application configuration) var expiration = CACHE_ABSOLUTE_EXPIRATION ; var absoluteExpiration = LangUtils . parseInt ( app . getConfiguration ( ) . getSourceAt ( 'settings/cache/absoluteExpiration' ) ) ; if ( absoluteExpiration >= 0 ) { expiration = absoluteExpiration ; } this [ rawCacheProperty ] = new NodeCache ( { stdTTL : expiration } ) ; }
Implements the cache for a data application.
@class HttpCache
@param {HttpApplication} app
@constructor
Implements the cache for a data application .