How should I keep one variable persistently?

I am currently developing a Firefox extension. Now I need to constantly save the values ​​of two variables so that I can get the values, even if Firefox is restarted.

I already found the following ways to store data:

But is it not difficult to create an entire database for only two values? And maybe it sounds a little strange, but I really don't want to save the values ​​in the settings, because in fact it is just data and no preferences.

I can’t decide which way would be better. How do you store data? Are there other ways to store Firefox extension data?

+3
source share
2 answers

, , . , , . about:config.

: XUL localstore.rdf. ( JSON-encoded). , Windows (, ). .

+2

All Articles