put<T> static method

Future<bool> put<T>({
  1. required String key,
  2. dynamic value,
})

Implementation

static Future<bool> put<T>({required String key, dynamic value}) async {
  _cacheEntries.putIfAbsent(key, () => value as T);
  return true;
}