cacheList<T> static method

Future<void> cacheList<T>(
  1. String key,
  2. List<T> items, {
  3. Duration? ttl,
})

Cache list of items

Implementation

static Future<void> cacheList<T>(String key, List<T> items,
    {Duration? ttl}) async {
  await cacheData(key, items, ttl: ttl);
}