We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Your example checks for offline and if offline returns what is in the barrel but does not check for expired. After that you do check for expired.
//Dev handle online/offline scenario if(!CrossConnectivity.Current.IsConnected) { return Barrel.Current.Get<IEnumerable<Monkey>>(key: url); } //Dev handles checking if cache is expired if(!Barrel.Current.IsExpired(key: url)) { return Barrel.Current.Get<IEnumerable<Monkey>>(key: url); }
What am I missing? Shouldn't the two checks be combined (if not on line and not expired)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Your example checks for offline and if offline returns what is in the barrel but does not check for expired. After that you do check for expired.
What am I missing? Shouldn't the two checks be combined (if not on line and not expired)
The text was updated successfully, but these errors were encountered: