lib/index.js
function CacheModule(settings, cacheName, serviceHandler, serviceCallName) {
        if (serviceCallName == null) {
          serviceCallName = "call";
        }
        settings.init("cacheModules", {
          expiration: {
            "default": 1800000
          }
        });
        this.settings = settings;
        this.cache = {
          data: {},
          mtime: {},
          name: cacheName
        };
        this.service = serviceHandler;
        this.serviceCallName = serviceCallName;
      }
function CacheModule(settings, cacheName, serviceHandler, serviceCallName) {
        if (serviceCallName == null) {
          serviceCallName = "call";
        }
        settings.init("cacheModules", {
          expiration: {
            "default": 1800000
          }
        });
        this.settings = settings;
        this.cache = {
          data: {},
          mtime: {},
          name: cacheName
        };
        this.service = serviceHandler;
        this.serviceCallName = serviceCallName;
      }
function CacheModule ( settings , cacheName , serviceHandler , serviceCallName ) { if ( serviceCallName == null ) { serviceCallName = "call" ; } settings . init ( "cacheModules" , { expiration : { "default" : 1800000 } } ) ; this . settings = settings ; this . cache = { data : { } , mtime : { } , name : cacheName } ; this . service = serviceHandler ; this . serviceCallName = serviceCallName ; }
The class constructor.

@function constructor

@params {Object}    settings            A madlib-settings instance
@params {String}    cacheName           The name of the cache. Used to retrieve expiration settings and logging purposes
@params {Function}  serviceHandler      The 'service' instance providing the data for the cache
@params {String}    [serviceCallName]   The name of the method to call on the serviceHandler. Defaults to 'call'
@params

@return None
The class constructor .