I'm building an application that serves requests for returning XML documents. I want to cache document read to improve application performance by reducing the number of I/O operations. Also, I need it to invalidate the documents after a specific period.
For example:
- My app reads 'document1'
- My app asks cache component to save the read document for 2 minutes.
- For the second request, the app asks cache component if 'document1' is cached or not?
- If yes, don't read it from the disk and get it from the cache
- If no (due to the period is expired) go to step 1
Is there any open source solution for those requirements and available for code to code integration?
Aucun commentaire:
Enregistrer un commentaire