SkillAgentSearch skills...

ImageCache

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

Install / Use

/learn @tonyzonghui/ImageCache
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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'
View on GitHub
GitHub Stars13
CategoryDevelopment
Updated6y ago
Forks2

Languages

Objective-C

Security Score

60/100

Audited on Jun 16, 2019

No findings