Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cache library for Objective-C (iPhone)

Is there an existing library for Objective C (that can be used on the iPhone) containing a cache implementation that:

  • allows to limit the number of elements
  • removes elements with an LRU algorithm if the limit is reached
  • optional: allows to remove all elements older than X
like image 758
vivo Avatar asked Dec 31 '10 23:12

vivo


1 Answers

Have you looked at NSCache? It should allow you to setup rules like you're wanting.

like image 107
Joshua Weinberg Avatar answered Oct 02 '22 22:10

Joshua Weinberg