Caching is an a very integral part of a mobile app since it allows less battery usage, quicker interactions and better experience overall. In this talk we’re going to explore the fundamentals of caching and learn how to compose different cache layers such as disk and network into one by defining each layer as a monoid which makes the composition of them effortless and more declarative.
51. Ram
Disk
Network
ADAPT, USER PROFILE EXAMPLE
f( ) =
Data -> JSON
f( ) =
JSON -> User
Profile Model
fInv( ) =
fInv( ) =
JSON ->
Data
User Profile
Model -> JSON