lib/FakeCache.js
/**
 * @constructor
 * @extends CacheInstance
 * @param {Logger} logger A logger for logging debug information.
 * @param {string=} optUri Give an URI to this fake cache instance
 */
@constructor
@extends CacheInstance
@param {Logger} logger A logger for logging debug information.
@param {string=} optUri Give an URI to this fake cache instance
@constructor @extends CacheInstance @param { Logger } logger A logger for logging debug information . @param { string = } optUri Give an URI to this fake cache instance
function FakeCache(logger, optUri) {
  CacheInstance.call(this)
  this.flush()
  this._logger = logger
  this._failureCount = 0
  this._latencyMs = CACHE_LATENCY_MS
  this._nextFailure = null
  this._uri = optUri || 'FakeCache'
}
function FakeCache ( logger , optUri ) { CacheInstance . call ( this ) this . flush ( ) this . _logger = logger this . _failureCount = 0 this . _latencyMs = CACHE_LATENCY_MS this . _nextFailure = null this . _uri = optUri || 'FakeCache' }
@constructor
 @extends CacheInstance
 @param {Logger} logger A logger for logging debug information.
@constructor @extends CacheInstance @param { Logger } logger A logger for logging debug information .