get abstract method

Future<CacheEntry?> get(
  1. String key, {
  2. bool allowStale = false,
})

Retrieves a cache entry by key. If allowStale is true, returns entries within the Stale-While-Revalidate or Stale-If-Error windows.

Implementation

Future<CacheEntry?> get(String key, {bool allowStale = false});