A lightweight and performance-focused library to persist simple objects in the cache and on-disk.
- Xcode 11+
- Target of iOS 11.0 or higher
Cocoapods is currently not supported by Efficient Cache.
Efficient Cache can be installed using the Swift Package Manager, a tool developed by Apple to automate the distribution of Swift code.
To add Efficient Cache to an Xcode project, use Xcode's Swift Packages
options located within the File
menu. A prompt will be displayed with a search bar to enter the repository URL of the package you wish to add. Copy Efficient Cache's URL and click on `Next. You will be presented with various options for version requirements. Choose the one that best suits your preferences.
To add Efficent Cache as a dependency, you only need to add it to the dependencies
value of the Package.swift
file.
dependencies: [
.package(url: "https://github.com/amerbouh/EfficientCache.git", .upToNextMajor(from: "1.0.0"))
]