update method

  1. @override
Future<int> update(
  1. CacheObject cacheObject, {
  2. bool setTouchedToNow = true,
})
override

Updates an existing cacheObject

Implementation

@override
Future<int> update(CacheObject cacheObject, {bool setTouchedToNow = true}) {
  return db!.update(
    _tableCacheObject,
    cacheObject.toMap(setTouchedToNow: setTouchedToNow),
    where: '${CacheObject.columnId} = ?',
    whereArgs: [cacheObject.id],
  );
}