talira

Tumblr's parallel memory and disk object cache for iOS and OS X, no longer maintained

open sourceApache-2.0free

TMCache's makers archived or ended it on 12 May 2015.

Tumblr's README says TMCache is no longer being actively maintained; Pinterest's fork PINCache carries it on.

TMCache is Tumblr's key/value object cache for iOS and OS X, for keeping temporary objects that are expensive to make again, such as downloaded data or the results of slow processing. It pairs an in-memory store (TMMemoryCache) with an on-disk one (TMDiskCache), both backed by GCD and safe to use from several threads at once. The memory cache clears itself on a memory warning or when the app goes into the background, and the disk cache keeps objects until you trim it by hand or with a byte or age limit. It stores any NSCoding object. Tumblr stopped maintaining it in May 2015; PINCache, Pinterest's fork of it, is the maintained successor.

Problems it solves

  • the object cache library in my old Objective-C app is unmaintained and I need to know what replaced it
  • cache downloaded images on disk and in memory in an old iOS app
  • a thread-safe object cache for an Objective-C project that clears itself on memory warnings

Features

  • paired memory and disk caches, safe from several threads
  • memory cache clears on memory warnings and backgrounding
  • disk cache trimmed by byte or age limits
  • stores any NSCoding object

Forks

  • PINCache Fast, thread-safe memory and disk object cache for Apple platforms. Its own project.

Alternatives

The same job

These do what TMCache does.

  1. PINCache Fast, thread-safe memory and disk object cache for Apple platforms

Compare TMCache with the top 3