Haneke is a lightweight generic cache for iOS and tvOS written in Swift 4. It's designed to be super-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. Asking Haneke to load, resize, cache and display an appropriately sized image is very simple. Generic cache with out-of-the-box support for UIImage, NSData, JSON and String. Extensible by defining custom formats, supporting additional types or implementing custom fetchers. Automatic cache eviction on memory warnings or disk capacity reached. Zero-config UIImageView and UIButton extensions to use the cache, optimized for UITableView and UICollectionView cell reuse.

Features

  • Comprehensive unit tests
  • Thread-safe
  • All disk access is performed in background
  • Asynchronous fetching of original values from network or disk
  • Second-level LRU disk cache using the file system
  • First-level memory cache using NSCache

Project Samples

Project Activity

See All Activity >

Categories

System

License

Apache License V2.0

Follow Haneke

Haneke Web Site

Other Useful Business Software
Veeam Data Platform v13.1 Icon
Veeam Data Platform v13.1

Move workloads across hypervisors and clouds with no vendor lock-in. Try VDP free today.

Try Veeam Data Platform today. Experience the unified platform that's secure by design, portable by default, and proven to recover clean, fast, and anywhere.
Try Now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Haneke!

Additional Project Details

Operating Systems

Apple iPhone

Programming Language

Swift

Related Categories

Swift System Software

Registered

2021-10-20