get

abstract suspend fun <R : Data> get(unit: StorageUnit<R>): R?

Retrieve and return the data object represented by the given storage unit.

This function should attempt to retrieve from the dataCache first, and return the result of reload if it isn't present there.

Return

The loaded data if it was found, null otherwise.