put abstract method

Future<void> put(
  1. String key,
  2. CacheItem value
)

Stores a value in the cache with the given key.

The value is wrapped in a CacheItem object, which allows for optional expiry.

Throws a CacheException if there is an error storing the data.

Implementation

Future<void> put(String key, CacheItem<dynamic> value);