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

Set of network extensions #7

Open
badeleux opened this issue Jul 12, 2016 · 4 comments
Open

Set of network extensions #7

badeleux opened this issue Jul 12, 2016 · 4 comments
Labels

Comments

@badeleux
Copy link

I'm planning to build set of extensions for RAC which will make building network requests easier. I want to create layer for caching, retrying, updating . I haven't thought about architecture cause firstly I'd like to ask whether this idea is worth doing whether it doesn't abuse FRP, and it's possible to do cause I'm kinda surprised there is no such a thing yet.

let racCache = ArchiverCache()
let fetchCriticalData = Alamofire...
fetchCriticalData.updateOn(didEnterForeground).cache(racCache, policy: CacheFallbackRemote).retryOn(retryButtonTapped)
@RuiAAPeres
Copy link
Member

What are your thoughts on using NSURLCache, instead of your own custom cache?

@badeleux
Copy link
Author

NSURLCache would be one of the options, sometimes would like to use DB for caching.

@RuiAAPeres
Copy link
Member

Could a wrapper for Alamofire be something that would interest you?

@badeleux
Copy link
Author

Well, it's kinda extended wrapper to Alamofire, but I don't see a strong reason why we would have to limit this extension to alamofire only.

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

No branches or pull requests

2 participants