A Caching Library, written in Swift that can cache Anything.
A Caching Library, written in Swift that can cache JSON, Image, Zip or anything with expiry date and force refresh.
Publish date: December 13, 2019
Last updated: December 18, 2019
Reading time: 1 minutes
Last updated: December 18, 2019
Needed a cache Library that has
- Asynchronous data downloading and caching.
- Asynchronous image downloading, caching and showing.
- Expiry date/time for all the objects individually.
- Multiple-layer hybrid cache for both memory and disk.
- Fine control on cache behavior. Customizable expiration date and size limit.
- Force refresh if needed.
- Independent components. Use the Cachy or CachyLoader system separately as you need.
- Can save JSON, UIImage, ZIP or anything.
- View extensions for
UIImageView
. - Indicator while loading images.
Couldn’t find any all in one solution, either it’s too much or too less, so came up with this.
https://github.com/Sadmansamee/CachyKit
it’s the first version there might be a lot of issues or bad, please point them out and how I can improve them.