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,
}) async {
  if (cacheObject.id == null) {
    throw ArgumentError('Updated objects should have an existing id.');
  }
  _put(cacheObject, setTouchedToNow);
  return 1;
}