Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to override uriToKey? #31

Open
sajal opened this issue Jan 14, 2013 · 0 comments
Open

Ability to override uriToKey? #31

sajal opened this issue Jan 14, 2013 · 0 comments

Comments

@sajal
Copy link

sajal commented Jan 14, 2013

I have a specific use-case where i need to override the key generation mechanism in HttpResponseCache.uriToKey

Since HttpResponseCache is a final class, it seems i cant extend it.

I want to access the same object using different urls, but they should correspond to the same object in the cache. Is there a way i can put my own hashing algorithm without cloning/forking the codebase? Or some other interface to provide a normalized url?

example:-
i access
http://foo.example.com/bar.png
http://bar.example.com/abc.png

Both should use the same object in the cache, my app knows the logic to normalize both these URLs into something common for caching purposes.

Question: If I attempt to add this myself and send pull request, is there a possibility this would make it to the codebase here? i.e. is the goal of this library to be 100% clone of Androids implementation, or is there some scope to add features that Android's lib doesn't provide?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant