add method

void add(
  1. T key,
  2. S value
)

Add to cache value associated with key

Implementation

void add(T key, S value) => _cache[key] = value;