privatize SQLiteCache - #3454
Conversation
|
Not sure about this one. There are use cases like Node that implements its own file source and it is moving towards on using memory backed Also we would have to forward interfaces for the cache path and cache size on the And finally, I would like to experiment with different cache configurations, like stack two |
|
I'm also partial on this one; the idea is to cleanly separate caching and file fetching logic. Removal of that separation will also make it harder to test these components, e.g. because we can no longer replace the cache with a mock object for testing the file source, or test the cache directly. @tmpsantos The node module uses a separate FileSource altogether, not just another FileCache. |
We now have a separate |
|
Despite all the architecture discussion above, I actually had a very simple change in mind to start out with. WDYT? |
Looks good to me but we should handle something like empty path not creating a cache. |
|
@tmpsantos Do we need that feature anywhere? If not, let's leave it out. |
Not that I'm aware of. |
a1e5adc to
e7b0b31
Compare
No code that uses
DefaultFileSourcewants to not useSQLiteCache. We should make theSQLiteCacheinstance a member ofDefaultFileSource, thus enforcing its use, and remove it and theFileCachebase class from the public API.cc @kkaefer