updateCache method

Future<void> updateCache(
  1. String key,
  2. CacheItemsCompanion item
)

更新缓存项(使用replace模式,因为主键已存在)

Implementation

Future<void> updateCache(String key, CacheItemsCompanion item) async {
  await insertCache(item);
}