In reality, the X and Y are objects that come from...
# kodein
s
In reality, the X and Y are objects that come from my API, D is a cache that maps ids to instances of Y, C is the service that contains two methods
getList(): List<X>
and
getObj(id: Int): Y
, B1 is the data source that returns data from cache D, B2 is the data source that returns data from the service C and puts it in cache D, the list of B is the order of priority of data sources (so cache first, else api) and A is the repository that's used to get the data
😱 1