I'm going to refactor HTTPCache class for the following purposes:
In offline discussions, some people reported that HTTPCache's flexibility is insufficient. They want to store items with a string rather than an integer key. By introducing HTTPConnector, they can implement other caches with string keys.
I want to later add a transparent cache based on the FS interface. The transparent FS cache hooks the read requests, then it tries HTTPCache. If the cache is hit, the content will be retrieved from HTTP, but if the cache is missed, the content will be retrieved from the actual FS and then pushed to HTTPCache.
I also reduce the number of connection pools to share HTTP connections if users create multiple HTTPCache.
I'm going to refactor HTTPCache class for the following purposes:
I also reduce the number of connection pools to share HTTP connections if users create multiple HTTPCache.