swift-actor-persistence

Community

Thread-safe Swift persistence with actors and cache.

Authorshimo4228
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Race conditions in data persistence layers when multiple parts of an app read/write simultaneously. Traditional approaches (DispatchQueues, locks) are error-prone and verbose.

Core Features & Use Cases

  • In-memory cache + file persistence: fast reads from cache, durable writes to disk
  • Synchronous init loading: avoids async initialization complexity
  • Dictionary keying: O(1) lookups by ID
  • Private persistence: external callers only see domain operations

Quick Start

Instantiate LocalRepository and perform async operations to save, load, and query records.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: swift-actor-persistence
Download link: https://github.com/shimo4228/claude-code-learned-skills/archive/main.zip#swift-actor-persistence

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.