I’ve mentioned a number of caching libraries most recently the Swift basedKingfisher library for easy downloading and caching of images.
Here’s a library from Spotify that provides persistent caching of NSData with a number of nice features called SPTPersistentCache.
SPTPEersistentCache allows for a time to live (TTL) expiry time for cached data, locking files that may be expired, disk management to make sure the cache is not too large, protectors against data corruption, the ability to control garbage collection and more.
Here’s an image showing usage of the SPTPersistentCache viewer tool on OS X:
You can find SPTPersistentCache on Github here .
A nice library for creating persistent caches.