The Cache layer allows us to abstract the local source of data that our application uses. In this lesson, we're going to be creating the Configuration Data Access Object class which will allow us to store and retrieve instances of our model containing configuration data.
As Xun hints, the editing of this video made it so you do not see the source code for the Config model. The link to the model source code is here. You'll get a compile error complaining that you need a Primary Key if you don't use the proper model source.
There is also an error in the code in the video for the ConfigDao...I guess that shows that after each video you should check the source link to see if there is any changes from what Joe typed in the video and what actually works in the code. The difference is in the getObjects query. in the video he typed:
abstract fun getConfig(): Config
The working code is:
abstract fun getConfig(): Flowable
This caused me an error in the Implementation class because I originally missed this code change.