put<T> method

void put<T>(
  1. TypedKey<T> key,
  2. T calc()
)

Implementation

void put<T>(TypedKey<T> key, T Function() calc) {
  _cache[key] = calc;
}