A Swift caching library for JSON, images, ZIP files, and any object with expiry dates and force refresh.
CachyKit is a thread-safe, expirable cache management library for iOS and macOS applications. It provides a flexible solution for caching various data types like JSON, images, and ZIP files, with fine-grained control over expiration and storage behavior, reducing boilerplate for developers.
iOS and macOS developers building applications that require efficient data caching, such as those handling remote images, JSON APIs, or offline data persistence.
Developers choose CachyKit for its hybrid memory-disk caching, per-object expiration controls, and built-in UIImageView extensions, offering a balance of simplicity and customization compared to more rigid caching solutions.
A Caching Library is written in Swift that can cache JSON, Image, Zip or AnyObject with expiry date/TTYL and force refresh.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Allows individual expiration dates for cached items with options like daily, weekly, or custom seconds, as shown in the ExpiryDate enum usage.
Supports both in-memory and disk storage via configurable isOnlyInMemory, balancing speed and persistence for various data types.
Provides easy methods for loading and caching images into UIImageViews with loading indicators, reducing boilerplate for image handling.
Emphasized as thread-safe in the description, ensuring safe concurrent access in multi-threaded apps without additional locking overhead.
Only offers CocoaPods installation with no mention of Swift Package Manager or Carthage, which are standard in modern Swift development.
Relies on expiration-based cache eviction with optional size limits, lacking advanced algorithms like LRU that optimize memory usage in complex scenarios.
The README covers basic usage but lacks detailed API references, error handling examples, or guidance for custom data serialization beyond NSSecureCoding.