Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source iOS Library For Persistent Caching With TTL, Disk Management Features And More

  •  
  •  
  •  
  •  
  •  

I’ve mentioned a number of caching libraries most recently the Swift based Kingfisher 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:
SPTPersistentCacheViewer

You can find SPTPersistentCache on Github here.

A nice library for creating persistent caches.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments