mercredi 26 juin 2019

caching component for general object

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:

  1. My app reads 'document1'
  2. My app asks cache component to save the read document for 2 minutes.
  3. For the second request, the app asks cache component if 'document1' is cached or not?
  4. If yes, don't read it from the disk and get it from the cache
  5. 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