EGOCache: Objective-C Image/String/Data Caching

Shaun, Jul 6

EGOCache is a pretty simple caching class for Objective-C that'll let you cache data for a certain period of time.  It's designed to work on the iPhone, so the paths reflect that.

Pretty simple to implement:


You can grab it via github gist: http://gist.github.com/141427

Also to note, if the cache expired or there is no cache, it simply returns nil.  So all you need to do is check if it returns something, if not, grab the data you're looking for and cache it.

blog comments powered by Disqus