# hyperoslo/Cache

:package: Nothing but Cache.

Repository: https://github.com/hyperoslo/Cache
Canonical: https://ross.abutalabs.com/products/hyperoslo-cache
Language: Swift
License: NOASSERTION
License Family: other
Topics: cache, cache-storage, disk-cache, memory-cache, swift, ios
Last push: 2025-08-30T17:31:03+00:00

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

## Adoption (not part of the score)
Stars 3142, forks 355 (observed 2026-08-28T04:07:45.898640+00:00)

## What it is
A Swift caching library for iOS, tvOS, and macOS that provides memory, disk, and hybrid storage built on Codable serialization. It offers sync and async APIs, expiry handling, and thread-safe composable storage.

## Use cases
- cache objects to disk and memory in an iOS app
- store Codable structs with expiry dates in Swift
- add a hybrid memory and disk cache to an app
- cache API JSON responses on iOS
- clean up expired cached objects automatically
- thread-safe caching from multiple queues in Swift

## When to choose
- you need a focused, well-tested caching layer for Apple platforms
- you want Codable-based persistence with configurable expiry
- you need both memory and disk storage behind one API

## When to avoid
- you need caching for non-Apple platforms or web backends
- you want an image-loading library with built-in networking
- you need distributed or shared cache across devices

## Facets
- artifact type: library
- maturity: stable
- function: caching, serialization
- domain: mobile-development, developer-tools
- platform: -
- tags: disk-cache, memory-cache, codable, swift-package, thread-safe, ios, macos, swift

## Member repositories
- hyperoslo/Cache (main) score 40

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:45.898640+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-30T07:26:00.657105+00:00, confidence not recorded.
  - readme: https://github.com/hyperoslo/Cache (fetched 2026-08-28T04:07:45.898640+00:00, sha 432d5a3ddb4c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
