SDWebImage/DMImageCache.h

28 lines
672 B
C
Raw Normal View History

2009-09-20 02:45:42 +08:00
//
// DMImageCache.h
// Dailymotion
//
// Created by Olivier Poitrey on 19/09/09.
// Copyright 2009 Dailymotion. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DMImageCache : NSObject
{
NSMutableDictionary *cache;
NSString *diskCachePath;
}
+ (DMImageCache *)sharedImageCache;
- (void)storeImage:(UIImage *)image forKey:(NSString *)key;
- (void)storeImage:(UIImage *)image forKey:(NSString *)key toDisk:(BOOL)toDisk;
- (UIImage *)imageFromKey:(NSString *)key;
- (UIImage *)imageFromKey:(NSString *)key fromDisk:(BOOL)fromDisk;
- (void)removeImageForKey:(NSString *)key;
- (void)clearMemory;
- (void)clearDisk;
- (void)cleanDisk;
@end