The idea is to create a scheduler that will run on a regular interval (or maybe multiple schedulers and multiple intervals) and execute certain tasks:
- delete expired tasks
- cleanup old pastes, the ones that haven't been accessed for a long time
- refresh/invalidate the cache
- write in-memory data to file/database (such as stats)
In addition to that, the API must not show the pastes that have expired already.
Other ideas are more than welcome!
The idea is to create a scheduler that will run on a regular interval (or maybe multiple schedulers and multiple intervals) and execute certain tasks:
In addition to that, the API must not show the pastes that have expired already.
Other ideas are more than welcome!