| 123456789101112131415161718192021222324252627 |
- /*
- * This file is part of the DMWebImage package.
- * (c) Dailymotion - Olivier Poitrey <rs@dailymotion.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- #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
|