Plotly Dash: Как сохранить/кэшировать Dash DataTable без создания внешнего файла?

Я ищу набор функций или библиотеку, которые позволили бы мне выполнять следующие операции:

  1. There is a Dash DataTable displayed in my web app.
  2. I select specific rows in the table and click the save button.
  3. Then the selected rows transform into a pd.dataframe object then it's changed to a json object using df.to_json('records').
  4. The created json file stays in the web browser or server(like heroku) without making an external json or excel file on the local server(aka my laptop). And this saved file stays permanently in the storage (server or wherever) unless I do something on it.
  5. When I click another button on my web app, Dash DataTable object is displayed sourcing from that json file.
  6. When I click again another button on my web app, the file is deleted permanently.

Эта серия операций находится за пределами моих знаний, поскольку я никогда в жизни не касался кэширования на стороне сервера или чего-либо подобного... (простите, я новичок :( ).

Надеюсь, мой вопрос был понятен! Спасибо!

Вернуться на верх