get method

V? get(
  1. K key
)

Retrieve cache value associated with key.

Returns null if the entry does not exist or has expired.

Implementation

V? get(K key) => _cache[key]?.data;