Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 32 lines (27 sloc) 1.075 kb
89b45c3f » rs
2009-09-19 Add licensing information
1 /*
a7734af5 » rs
2009-09-21 Remove Dailymotion paternity and move to joined paternity with Fraggl…
2 * This file is part of the SDWebImage package.
3 * (c) Olivier Poitrey <rs@dailymotion.com>
89b45c3f » rs
2009-09-19 Add licensing information
4 *
5 * For the full copyright and license information, please view the LICENSE
6 * file that was distributed with this source code.
7 */
9cc8f904 » rs
2009-09-19 Initial revision
8
9 #import <Foundation/Foundation.h>
2b352c3c » rs
2010-09-16 Perform disk cache out operations asynchronousely in order to prevent…
10 #import "SDImageCacheDelegate.h"
9cc8f904 » rs
2009-09-19 Initial revision
11
a7734af5 » rs
2009-09-21 Remove Dailymotion paternity and move to joined paternity with Fraggl…
12 @interface SDImageCache : NSObject
9cc8f904 » rs
2009-09-19 Initial revision
13 {
1fe20c25 » rs
2010-10-10 Remove the need for storeDataQueue dictionnary which required synchro…
14 NSMutableDictionary *memCache;
9cc8f904 » rs
2009-09-19 Initial revision
15 NSString *diskCachePath;
2b352c3c » rs
2010-09-16 Perform disk cache out operations asynchronousely in order to prevent…
16 NSOperationQueue *cacheInQueue, *cacheOutQueue;
9cc8f904 » rs
2009-09-19 Initial revision
17 }
18
a7734af5 » rs
2009-09-21 Remove Dailymotion paternity and move to joined paternity with Fraggl…
19 + (SDImageCache *)sharedImageCache;
9cc8f904 » rs
2009-09-19 Initial revision
20 - (void)storeImage:(UIImage *)image forKey:(NSString *)key;
21 - (void)storeImage:(UIImage *)image forKey:(NSString *)key toDisk:(BOOL)toDisk;
d2dc4cbb » rs
2010-08-29 Do not convert images to JPEG when stored to disk for caching
22 - (void)storeImage:(UIImage *)image imageData:(NSData *)data forKey:(NSString *)key toDisk:(BOOL)toDisk;
9cc8f904 » rs
2009-09-19 Initial revision
23 - (UIImage *)imageFromKey:(NSString *)key;
24 - (UIImage *)imageFromKey:(NSString *)key fromDisk:(BOOL)fromDisk;
2b352c3c » rs
2010-09-16 Perform disk cache out operations asynchronousely in order to prevent…
25 - (void)queryDiskCacheForKey:(NSString *)key delegate:(id <SDImageCacheDelegate>)delegate userInfo:(NSDictionary *)info;
26
9cc8f904 » rs
2009-09-19 Initial revision
27 - (void)removeImageForKey:(NSString *)key;
28 - (void)clearMemory;
29 - (void)clearDisk;
30 - (void)cleanDisk;
31
32 @end
Something went wrong with that request. Please try again.