API server of the cs-insights project. This is the main part of storing data and accessing an external data analysis endpoint. It uses a mongoDB instance to store everything and queries the cs-insights-prediction-endpoint to get machine learning results.
Is your feature request related to a problem? Please describe.
Instead of using custom queries, with #90 we can directly use the express-restify-mongoose framework to query the backend.
Therefore we need to move the cache read implemented in #89 to the preRead, preUpdate, and preCretae middleware and move the cache write in the postRead middleware.
Describe the solution you'd like
Whenever there is a read, the cache should be set.
When there is a create, the cache should be deleted as the view is deprecated.
Is your feature request related to a problem? Please describe. Instead of using custom queries, with #90 we can directly use the express-restify-mongoose framework to query the backend. Therefore we need to move the cache read implemented in #89 to the preRead, preUpdate, and preCretae middleware and move the cache write in the postRead middleware.
Describe the solution you'd like Whenever there is a read, the cache should be set. When there is a create, the cache should be deleted as the view is deprecated.