put method

void put(
  1. String key,
  2. T item
)

Inserts an item with the given key into the cache

Implementation

void put(String key, T item) {
  putWithDuration(key, item, _duration);
}