add method

Future<bool> add(
  1. String key,
  2. Object? value, {
  3. Duration? duration,
})

Store only when the key is missing. True when it was stored.

Implementation

Future<bool> add(String key, Object? value, {Duration? duration}) {
  return repository.add(key, value, duration);
}