# PINCache

> Fast, thread-safe memory and disk object cache for Apple platforms

Source: https://talira.ai/catalog/pincache-9y363rtt
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / caching](https://talira.ai/categories/libraries/caching), [languages / swift](https://talira.ai/categories/languages/swift), [languages / objective c](https://talira.ai/categories/languages/objective-c)
- Licence: Apache-2.0[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Pinterest](https://talira.ai/orgs/pinterest.md)
- Forked from [TMCache](https://talira.ai/catalog/tmcache-1gs9qq7h.md). Re-architected to fix issues with deadlocking caused by heavy use

PINCache is Pinterest's key/value object cache for iOS, macOS, tvOS and watchOS, 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 (`PINMemoryCache`) with an on-disk one (`PINDiskCache`), both backed by GCD and safe to use from several threads at once: objects added to memory are available to other threads at once while they're written to disk in the background. 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. Pinterest forked it from Tumblr's TMCache and re-architected it to fix deadlocks under heavy use.

## Links

- GitHub: https://github.com/pinterest/PINCache

## Problems it solves

- cache downloaded images in my iOS app across launches
- keep expensive objects in memory and on disk without deadlocks in Swift
- an iOS object cache that empties itself on a memory warning

## 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, from Objective-C or Swift

## Trust

Overall: 0.39 out of 1.
Signals: maintenance 0.27, adoption 0.69, momentum 0.39, community 0.77, backing 0.30, extensibility 0.00.

- latest release 3.0.4 2.6 years ago
- 2.7k GitHub stars
- 82 contributors
- backed by Pinterest

Warnings:

- last commit 4 months ago

## Sources

[^1]: https://github.com/pinterest/PINCache/blob/master/LICENSE.txt (checked 28 Nov 2026)
[^2]: https://github.com/pinterest/PINCache/blob/master/PINCache.podspec (checked 28 Nov 2026)
