AsyncCache<T> constructor

AsyncCache<T>(Duration _duration)

Creates a cache that invalidates its contents after duration has passed.

The duration starts counting after the Future returned by fetch completes, or after the Stream returned by fetchStream emits a done event.

Implementation

AsyncCache(this._duration);