Pregunta

I'm developing an application where I need to cache the response from urls the user visits. So is there a good caching system like jcs available already? Or a port of squid for java(android java) would do. Do I need to write my own caching system?

¿Fue útil?

Solución

JCS and Squid are probably too heavyweight for what you need. If you are just caching some text, I would think a simple map based approach would work for you. If you need to persist this data, a database or file would probably work better.

Otros consejos

Since Android 4 the HttpUrlConnection is able to cache responses. See http://practicaldroid.blogspot.de/2013/01/utilizing-http-response-cache.html.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top