Skip to content

2.0.0

Compare
Choose a tag to compare
@shnhrrsn shnhrrsn released this 14 Oct 21:33
· 25 commits to master since this release

The public interface in 2.0 is largely the same, with the exception of [EGOCache currentCache] being deprecated in favor of [EGOCache globalCache]. You can now create your own instances of EGOCache and tell it to store wherever, this can be good for dividing up caches in different sections of your app.

Internally, EGOCache was largely rewritten to take advantage of libdispatch and is far more stable/performant when handling saves from multiple threads than it was in the past.

One other notable internal change for users upgrading from 1.0 to be aware of, is UIImage's are no longer stored via UIImagePNGRepresentation. They're stored now by archiving UIImage itself, which allows us to retain information such as image scale, orientation, and also store the image in it's native type, so JPEG's are no longer inflated to PNG sizes. If you were previously saving images via setImage:forKey:, but for some reason retrieving them via dataForKey:, you'll need to update your code to account for this.