神刀安全网

Maniac Dev : 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 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: Maniac Dev : Open Source iOS Library For Persistent Caching With TTL, Disk Management Features And More

You can find SPTPersistentCache on Github here .

A nice library for creating persistent caches.

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Maniac Dev : Open Source iOS Library For Persistent Caching With TTL, Disk Management Features And More

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮