cacheResponse method

void cacheResponse(
  1. String key,
  2. dynamic value
)

Stores a response in the cache under the given key.

  • Parameters:
    • key: The key to store the response under.
    • value: The response to store in the cache.

Implementation

void cacheResponse(String key, dynamic value) {
  _cache.set(key, value);
}