Optional
An optional dispose function to be called when a value is removed from the cache. Defaults to disposing of values which implement Disposable, and doing nothing otherwise.
The maximum size of the cache.
An optional dispose function to be called when a value is removed from the cache. Defaults to disposing of values which implement Disposable, and doing nothing otherwise.