A simle cache manager class reference to the SDImageCache in SDWebImage. Basing on the file system, my class reads and writes into cache data through the key corresponding to the file. The problems lay in inconvenient extension, lacking of metadata, unavailiableness of the elimination algorithm, slowness to statistics. keey it simple and tiny.
To run the example project, clone the repo, and run pod install
from the Example directory first.
FDCache is available through CocoaPods. To install it, simply add the following line to your Podfile:
source 'https://github.com/CocoaPods/Specs.git' # 官方库
source 'https://github.com/toolazytoname/Specs.git'#懒得起名私有库
platform :ios, '8.0'
target "TargetName" do
pod 'FDCache'
end
toolazytoname, [email protected]
FDCache is available under the MIT license. See the LICENSE file for more info.