add static method

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

Stores value only when key is missing; returns whether it did.

Implementation

static Future<bool> add(String key, Object? value, {Duration? ttl}) =>
    store().add(key, value, ttl: ttl);