Swift Cache Libraries
Cache libraries for Swift
GitHub Star Comparison
| No | Name | GitHub Stars | Description | Trend | License | Type | Official Site |
|---|---|---|---|---|---|---|---|
| 1 | NSCache | - | Standard iOS in-memory cache class. Provides automatic memory management and auto-removal during memory pressure | Absolute position as foundational technology for iOS/macOS development in 2025. Highest reliability with official Apple support | Apple SDK | Foundation Cache | Official |
| 2 | HanekeSwift | - | Lightweight generic cache library for Swift. Provides features specialized for image caching with auto-resizing and background processing | Important choice for image-intensive iOS apps in 2025. Continued adoption through optimization for UITableView/UICollectionView | Apache-2.0 | Image Cache | Official |
| 3 | Cache | - | Modern cache library supporting Swift Package Manager. Supports both memory and disk with time limits and capacity limits | Rising attention due to Swift Package Manager adoption in 2025. Ecosystem integration in modern Swift development | MIT | SPM Cache | Official |
| 4 | AwesomeCache | - | Simple and easy-to-use Swift cache library. Clean API designed for delicate caching requirements | Standard choice for small iOS projects in 2025. Continued demand through simplicity and ease of use | MIT | Simple Cache | Official |
| 5 | - | Lightweight and high-performance Swift cache framework. Supports both memory and disk with expiration and custom serialization features | Gaining attention in high-performance demanding iOS apps in 2025. Expanding adoption through balance of customizability and performance | MIT | Performance Cache | Official | |
| 6 | CodableCache | - | Swift cache library supporting Codable protocol. Type-safe cache operations and Swift-native serialization | Adopted in applications utilizing Swift type system in 2025. Development efficiency improvement through Codable integration | MIT | Codable Cache | Official |