forked from jakemarsh/JMImageCache
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJMImageCache.h
More file actions
30 lines (20 loc) · 1.04 KB
/
JMImageCache.h
File metadata and controls
30 lines (20 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// JMImageCache.h
// JMCache
//
// Created by Jake Marsh on 2/7/11.
// Copyright 2011 Jake Marsh. All rights reserved.
//
#import "UIImageView+JMImageCache.h"
@interface JMImageCache : NSCache
+ (JMImageCache *) sharedCache;
- (void) imageForURL:(NSURL *)url key:(NSString *)key completionBlock:(JMICCompletionBlock)completion failureBlock:(JMICFailureBlock)failure;
- (void) imageForURL:(NSURL *)url completionBlock:(JMICCompletionBlock)completion failureBlock:(JMICFailureBlock)failure;
- (UIImage *) cachedImageForURL:(NSURL *)url key:(NSString *)key;;
- (UIImage *) imageFromDiskForURL:(NSURL *)url key:(NSString *)key;;
- (void) setImage:(UIImage *)i forURL:(NSURL *)url key:(NSString *)key;
- (void) removeImageForURL:(NSURL *)url key:(NSString *)key;
- (void) writeData:(NSData *)data toPath:(NSString *)path;
- (void) performDiskWriteOperation:(NSInvocation *)invoction;
- (void) _downloadAndWriteImageForURL:(NSURL *)url key:(NSString *)key completionBlock:(JMICCompletionBlock)completion failureBlock:(JMICFailureBlock)failure;
@end