Offline cache entities - polymer

Hello everybody!
I read the documentation, but I didn’t understand how can I set up an offline cache for entities.
I need to create an app which can be used online connected to the rest api, but I also need user could still read, edit and create entities when no internet connection is available.

How can this be done? Can someon help me to understand how should I configure cuba for this?

Thank you in advance!

We do not provide any built-in functionality for offline support. From our experience it’s quite complicated and really depends on business requirements. Here is some base technologies you can use to provide some offline capabilities:

Local storage
Indexed DB
Service Worker

Thank you Vlad!
Is there anybody who can give me a guide/example to understand how those technology work together to have offline capabilities?

thanks in advance