shouldUseCache static method

bool shouldUseCache(
  1. Duration? ttl
)

Determines if caching should be used for a request.

Implementation

static bool shouldUseCache(Duration? ttl) {
  return ttl != null;
}