ImageCacheKit is a lightweight and extensible Swift library for caching images using in-memory and disk-based strategies. It supports asynchronous loading, custom caching strategies, and thread-safe access patterns.
- β In-Memory Image Caching
- β Disk-Based Image Caching
- β Strategy Pattern for Flexible Caching Logic
- β Thread-Safe Asynchronous Image Loading
- β Image Preloading & Manual Caching Support
- β UIKit Example Demonstration
- β Unit Tests for Core Components
Simply drag and drop the ImageCacheKit folder into your Xcode project.
Swift Package Manager support coming soon.
let image = await ImageCache.image(for: url, strategy: .memory)