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

Add Database with Cache and Activation/Deactivation via Endpoint #6

Open
4 tasks
motero2k opened this issue Nov 6, 2024 · 0 comments
Open
4 tasks
Assignees

Comments

@motero2k
Copy link
Collaborator

motero2k commented Nov 6, 2024

Add the ability to activate/deactivate caching via an endpoint.

When activated, the data will be persisted in the database. A possible implementation is using two NEDB instances:

  • A short-term cache that selectively dumps data to a long-term storage and clears after the transfer.
  • A long-term storage for persisting data.

Additionally, consider extending the plugin system to support smaller activation plugins, which would be lighter than the larger plugins.

Tasks:

  • Implement activation/deactivation of caching via endpoint.
  • Set up two NEDB instances: one for short-term cache and one for long-term storage.
  • Implement selective dumping of data from the short-term cache to long-term storage, followed by clearing the short-term cache.
  • Extend the plugin system to support smaller activation plugins.
@motero2k motero2k self-assigned this Nov 6, 2024
@motero2k motero2k converted this from a draft issue Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Next Actions
Development

No branches or pull requests

1 participant