1

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?

prongs
  • 9,422
  • 21
  • 67
  • 105

2 Answers2

0

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.

B. Anderson
  • 3,079
  • 25
  • 33
0

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

Stephan
  • 4,395
  • 3
  • 26
  • 49