hit(input) {
    let result = null;
    if (typeof this[data][input.access_id] === 'object') {
      if (input.role_id && typeof this[data][input.access_id]['ROLES'][input.role_id] !== 'undefined') {
        result = this[data][input.access_id]['ROLES'][input.role_id];
        this[data][input.access_id].ts = this.getItemTs();
      } else {
        if (input.user_id && typeof this[data][input.access_id]['USERS'][input.user_id] !== 'undefined') {
          result = this[data][input.access_id]['USERS'][input.user_id];
          this[data][input.access_id].ts = this.getItemTs();
        }
      }
    }
    return Promise.resolve(result);
  }
/*
   * HITS the cache for the given input
   * */
HITS the cache for the given input
HITS the cache for the given input
hit(input) {
    let result = null;
    if (typeof this[data][input.access_id] === 'object') {
      if (input.role_id && typeof this[data][input.access_id]['ROLES'][input.role_id] !== 'undefined') {
        result = this[data][input.access_id]['ROLES'][input.role_id];
        this[data][input.access_id].ts = this.getItemTs();
      } else {
        if (input.user_id && typeof this[data][input.access_id]['USERS'][input.user_id] !== 'undefined') {
          result = this[data][input.access_id]['USERS'][input.user_id];
          this[data][input.access_id].ts = this.getItemTs();
        }
      }
    }
    return Promise.resolve(result);
  }
hit ( input ) { let result = null ; if ( typeof this [ data ] [ input . access_id ] === 'object' ) { if ( input . role_id && typeof this [ data ] [ input . access_id ] [ 'ROLES' ] [ input . role_id ] !== 'undefined' ) { result = this [ data ] [ input . access_id ] [ 'ROLES' ] [ input . role_id ] ; this [ data ] [ input . access_id ] . ts = this . getItemTs ( ) ; } else { if ( input . user_id && typeof this [ data ] [ input . access_id ] [ 'USERS' ] [ input . user_id ] !== 'undefined' ) { result = this [ data ] [ input . access_id ] [ 'USERS' ] [ input . user_id ] ; this [ data ] [ input . access_id ] . ts = this . getItemTs ( ) ; } } } return Promise . resolve ( result ) ; }
HITS the cache for the given input
HITS the cache for the given input