Skip to main content

PrismMemoryStore

Actor-based in-memory LRU cache with per-entry TTL, automatic eviction, and hit/miss statistics.

LRU Eviction

When maxEntries is exceeded, least-recently-accessed entries are evicted first. Access (load) refreshes an entry’s position.

Statistics

PrismKeychainStore

Secure credential storage using the Security framework (SecItem APIs). Conforms to PrismStorageProtocol.

Security Notes

  • Data stored via kSecClassGenericPassword
  • Scoped by service identifier
  • accessGroup enables Keychain Sharing across apps
  • keys() uses kSecMatchLimitAll + kSecReturnAttributes
  • Thread-safe via NSLock