RxCookbook icon indicating copy to clipboard operation
RxCookbook copied to clipboard

Last-Value cache

Open LeeCampbell opened this issue 11 years ago • 0 comments

The ever popular last value cache. Often required, poorly implemented.

Potential implementations should/could:

  • Take a single sequence and partition it with group by and cache the last value of each
  • Only cache the last shared value
  • Provide an GetOrAdd(TKey, Func<TKey, IObservable<TValues>>) method.
  • Allow disposal to trash the whole thing.

LeeCampbell avatar Jun 04 '13 14:06 LeeCampbell