Cache for Objective-C (iPhone)

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

  • allows you to limit the number of elements
  • deletes elements using the LRU algorithm if the limit is reached
  • optional: allows you to delete all items older than X
+5
source share
1 answer

Have you looked at NSCache ? This should allow you to customize the rules as you wish.

+7
source

All Articles