add abstract method

Future<bool> add(
  1. String key,
  2. dynamic value,
  3. Duration ttl
)

Stores a value in the cache if the key does not exist.

Implementation

Future<bool> add(String key, dynamic value, Duration ttl);