Complete pages now still expire within an absolute expiration time. It would be nicer if we could allocate a fixed size memory budget to keep pages in memory as long as we're within budget but this seems tricky as calculating object memory usage is required to set the Size property on MemoryCacheEntryOptions. A possible solution would be to estimate this based on the payload size.
Usage-metrics are kept out of scope but this impl. should not prevent that.
Initial draft for an in-memory caching layer that wraps an IEventFeedReader based on https://github.com/dburriss/event-feed/issues/2.
Some considerations:
Size
property onMemoryCacheEntryOptions
. A possible solution would be to estimate this based on the payload size.Further work: