lib/CachePair.js
/**
 * @param {CacheInstance} primaryInstance The primary cache instance that
 *     serves both reads and writes
 * @param {CacheInstance} secondaryInstance The secondary cache instance that
 *     serves both reads and writes
 * @constructor
 * @extends {CacheInstance}
 */
@param {CacheInstance} primaryInstance The primary cache instance that
serves both reads and writes
@param {CacheInstance} secondaryInstance The secondary cache instance that
serves both reads and writes
@constructor
@extends {CacheInstance}
@param { CacheInstance } primaryInstance The primary cache instance that serves both reads and writes @param { CacheInstance } secondaryInstance The secondary cache instance that serves both reads and writes @constructor @extends { CacheInstance }
function CachePair(primaryInstance, secondaryInstance) {
  CacheInstance.call(this)
  this._isConnected = false
  this._primary = primaryInstance
  this._secondary = secondaryInstance
  this._shouldReadFromSecondary = false
  this._writeBackMaxAgeMs = -1
}
function CachePair ( primaryInstance , secondaryInstance ) { CacheInstance . call ( this ) this . _isConnected = false this . _primary = primaryInstance this . _secondary = secondaryInstance this . _shouldReadFromSecondary = false this . _writeBackMaxAgeMs = - 1 }
@param {CacheInstance} primaryInstance The primary cache instance that
     serves both reads and writes
 @param {CacheInstance} secondaryInstance The secondary cache instance that
     serves both reads and writes
 @constructor
 @extends {CacheInstance}
@param { CacheInstance } primaryInstance The primary cache instance that serves both reads and writes @param { CacheInstance } secondaryInstance The secondary cache instance that serves both reads and writes @constructor @extends { CacheInstance }