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

Add helper functions for most common caches #44

Closed
vittoriom opened this issue Aug 3, 2015 · 3 comments
Closed

Add helper functions for most common caches #44

vittoriom opened this issue Aug 3, 2015 · 3 comments
Milestone

Comments

@vittoriom
Copy link
Contributor

It would be nice to add some public functions or maybe one helper class with a couple of methods on it, to create the most common caches (e.g. Memory -> Disk -> Network)

This way one doesn't have to always write the boilerplate code for simple usages

@vittoriom vittoriom added this to the Second release milestone Aug 3, 2015
@vittoriom
Copy link
Contributor Author

  • Include dataCache function for NSURL keys and NSData values
  • Include imageCache function for NSURL keys and UIImage values
  • what else? @andresbrun

@andresbrun
Copy link

I would feel pretty confortable by using these two so far ;)

@vittoriom
Copy link
Contributor Author

Added dataCache() and imageCache() static functions to the CacheProvider class.
The implementation is not really production-ready but the flaws will be addressed by follow-up issues.

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

No branches or pull requests

2 participants