put abstract method

Future<V?> put(
  1. K key,
  2. V value
)

Inserts or updates the value for the given key in the cache.

Returns the previous value associated with the key, or null if there was none. Inserting a new value may trigger eviction if the cache exceeds its maximum size.

Implementation

Future<V?> put(K key, V value);