Save NSCache Contents to Disk

前端 未结 4 1938
不知归路
不知归路 2020-12-10 02:59

I\'m writing an app that needs to keep an in-memory cache of a bunch of objects, but that doesn\'t get out of hand so I\'m planning on using NSCache to store it all. Looks l

4条回答
  •  青春惊慌失措
    2020-12-10 03:28

    use TMCache (https://github.com/tumblr/TMCache). It's like NSCache but with persistence and cache purging. Written by the Tumblr team.

提交回复
热议问题