SafeDK
Sign upAdd Your SDK

Haneke is a lightweight generic cache for iOS and tvOS written in Swift 2.0. It's designed to be simple to use.

Haneke provides a memory and LRU disk cache for UIImage, NSData, JSON, String or any other type that can be read or written as data.

Particularly, Haneke excels at working with images. It includes a zero-config image cache with automatic resizing. Everything is done in background, allowing for fast, responsive scrolling.

Main Features

- Generic cache with out-of-the-box support for UIImage, NSData, JSON and String

- First-level memory cache using NSCache

- Second-level LRU disk cache using the file system

- Asynchronous fetching of original values from network or disk

- All disk access is performed in background

- Thread-safe

- Automatic cache eviction on memory warnings or disk capacity reached

- Comprehensive unit tests

- Extensible by defining custom formats, supporting additional types or implementing custom fetchers

SDK for Apple

  •  Bug fix: Synchronize access to UIImage initializer to workaround around Apple bug that caused rare crashes. 
  • 5fff29f: [UIKit] Bug fix: Don't animate with zero duration to prevent flicker in some situations. 
  •  [NetworkFetcher] Support file:// uris 
  •  [UIKit] Increase disk capacity for defaults formats to 50MB 
  • [DiskFetcher] Don't fail if already cancelled. 
  • [DiskCache] Check if file exists before updating access time . 
  • Enable "Require Only App-Extension-Safe API" to remove warning 

Documentation

Example A

Similar SDKs

MORE

Reviews

Rate Now
0
0
0
0
0
0

Start a new discussion about Haneke

×
0
/1000
Login