NSCache and background

前端 未结 3 1394
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-14 20:52

I\'ve noticed that NSCache evicts all of its object when the application goes in background. is that the expected behaviour? is there a way to avoid it?

I would exp

3条回答
  •  攒了一身酷
    2020-12-14 21:02

    The comments in this related post indicate that an NSCache is cleared when the app enters the background. NSCache is not evicting data

提交回复
热议问题