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
would you like to handle cache in disk operation? You know some code like above-
The text was updated successfully, but these errors were encountered:
No branches or pull requests
would you like to handle cache in disk operation?
You know some code like above-
if([self hasCacheForKey:key]) {
return [NSData dataWithContentsOfFile:cachePathForKey(key) options:0 error:NULL];
} else {
for(NSInvocationOperation* operation in [diskOperationQueue operations]){
NSInvocation *invocation=[operation invocation];
NSString *path=nil;
NSData *data=nil;
[invocation getArgument:&path atIndex:3];
if([path hasSuffix:key]){
[invocation getArgument:&data atIndex:2];
return data;
}
}
return nil;
}
}
The text was updated successfully, but these errors were encountered: