Save data from plugin - Best practices?

I’m currently working on a new plug-in which needs to keep track of its own data. For sure I can create my own mechanism by creating a new File() object but pretty sure there’re any guidelines or best practices out there, right?

So, here is my question: Is it a good practice to save data in users content directory or should I store data beside the plugin directory?

What sort of data? Temporary or permanent data? Does it need to be version controlled? For anything not page related, I don’t think the content folder is the right place.

@texnixe I want to store just a bunch of dates wich are promoted to the frontend. I guess I want save it permanently in sense of “as long the plugin is enabled/installed”. The content does not need to be version controlled but that should be decided by the user…