Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data structures and persistency for user data #68

Open
hannesm opened this issue Oct 15, 2024 · 1 comment
Open

Data structures and persistency for user data #68

hannesm opened this issue Oct 15, 2024 · 1 comment

Comments

@hannesm
Copy link
Contributor

hannesm commented Oct 15, 2024

At the moment, we use a list. And then we iterate over it for everything we need.

We also store everything on disk. With the rise of CSRF tokens / cookies, we may reconsider and store only some things on disk.

Also, these cookies seam to be never deleted, maybe we should remove them once used (for CSRF), and when expired.

Maybe a Map data structure, or multiple maps, are useful & sensible. They may be constructed when data is read at startup, and extended when data is stored onto disk (where the on-disk format is still a list).

@hannesm hannesm mentioned this issue Oct 15, 2024
@hannesm
Copy link
Contributor Author

hannesm commented Nov 5, 2024

Preparational work is done in #89 -- though this didn't change the data structures nor the data on disk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant