UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

18 lines 669 B
define(["require", "exports", './publishReplay'], function (require, exports, publishReplay_1) { "use strict"; /** * @param bufferSize * @param windowTime * @param scheduler * @return {Observable<any>} * @method cache * @owner Observable */ function cache(bufferSize, windowTime, scheduler) { if (bufferSize === void 0) { bufferSize = Number.POSITIVE_INFINITY; } if (windowTime === void 0) { windowTime = Number.POSITIVE_INFINITY; } return publishReplay_1.publishReplay.call(this, bufferSize, windowTime, scheduler).refCount(); } exports.cache = cache; }); //# sourceMappingURL=cache.js.map