setCache method

dynamic setCache(
  1. Duration? duration,
  2. String cacheKey
)

Set the cache for the request.

Implementation

setCache(Duration? duration, String cacheKey) {
  _cacheDuration = duration;
  _cacheKey = cacheKey;
}