Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tonyzonghui/ImageCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageCache

A basic image cache system for storing images in memory and on disk

Usage:

+ (ImageCache *)sharedImageCache;

- (UIImage *)imageForKey:(NSString *)key;

- (BOOL)hasImageWithKey:(NSString *)key;

- (void)storeImage:(UIImage *)image withKey:(NSString *)key;

- (BOOL)imageExistsInMemory:(NSString *)key;

- (BOOL)imageExistsInDisk:(NSString *)key;

- (NSUInteger)countImagesInMemory;

- (NSUInteger)countImagesInDisk;

- (void)removeImageWithKey:(NSString *)key;

- (void)removeAllImages;

- (void)removeAllImagesInMemory;

- (void)removeOldImages;
Use with cocoapods
pod 'ImageCache', '~>0.0.1'

About

Basic image cache. For caching image into memory or disk.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •