saveResource

abstract fun saveResource(resource: T, etag: String?)

Saves the resource and its etag into a DataStore for reading later.

Parameters

resource

The object to store in the DataStore

etag

The etag for this object; null values will also remove a previously stored etag