# ibireme/YYCache

High performance cache framework for iOS.

Repository: https://github.com/ibireme/YYCache
Canonical: https://ross.abutalabs.com/products/yycache
Language: Objective-C
License: MIT
License Family: permissive
Last push: 2023-01-26T11:51:37+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3966, "days_push": 1315, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2393, forks 549 (observed 2026-08-28T04:06:43.459552+00:00)

## What it is
YYCache is a high-performance caching framework for iOS written in Objective-C, providing both in-memory and disk caching with LRU eviction. It offers an NSCache-like thread-safe API with configurable limits, automatic eviction on memory warnings, and automatic sqlite/file storage selection for disk caching.

## Use cases
- cache images or API responses in memory on iOS
- persist objects to disk cache with LRU eviction
- replace NSCache with better eviction control
- automatically clear cache on memory warning or app backgrounding
- store non-NSCoding objects with custom serialization
- benchmark memory and disk cache performance on iOS

## When to avoid
- you need a maintained library with recent updates and modern Swift APIs
- you target platforms beyond Apple ecosystems
- you need cross-platform caching shared with Android or web
- you prefer Swift-native caching solutions like NSCache or custom actors

## Facets
- artifact type: library
- maturity: maintenance
- function: caching
- domain: mobile-development, performance
- platform: -
- tags: memory-cache, disk-cache, lru, nscache, sqlite, objective-c, cocoapods, carthage, ios, macos, swift

## Member repositories
- ibireme/YYCache (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:43.459552+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:34:25.484638+00:00, confidence not recorded.
  - readme: https://github.com/ibireme/YYCache (fetched 2026-08-28T04:06:43.459552+00:00, sha 36f5b18aeea5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
