Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Commit 4c7bae7

Browse files
committed
delete(C5): InMemoryStore and the Cache Primitives edge
The W3-parked InMemoryStore is superseded by Store.InMemory in swift-time-to-live (6f9a9db) — a fresh typed implementation, not a move, per the parked ruling that the `Any`-erasure is a defect to drop at the fill rather than carry across. The ssf side is therefore a pure deletion. Drops the sole consumer of Cache Primitives in this package, so the package dependency, the `.cachePrimitives` accessor, and the target edge go with it. `exports.swift` needed no change. Census: 0 remaining `InMemoryStore` references across 19,225 source and test files in the 8 documented workspace roots; 0 remaining `Cache_Primitives` references in this package's Sources+Tests, with a positive control firing 4 hits inside the deleted file at HEAD. Gated on fresh compilation (not cache): ServerFoundation and ServerFoundationEnvVars recompiled from source, 13/13 tests passed after recompiling the test target, swift-linter clean (0 errors), and `swift-format lint --strict` clean.
1 parent bf7b9f0 commit 4c7bae7

3 files changed

Lines changed: 0 additions & 474 deletions

File tree

Package.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ extension Target.Dependency {
1313
}
1414

1515
extension Target.Dependency {
16-
static var cachePrimitives: Self { .product(name: "Cache Primitives", package: "swift-cache-primitives") }
1716
static var urlRequestHandler: Self { .product(name: "URLRequestHandler", package: "swift-urlrequest-handler") }
1817
static var nioCore: Self { .product(name: "NIOCore", package: "swift-nio") }
1918
static var nioEmbedded: Self { .product(name: "NIOEmbedded", package: "swift-nio") }
@@ -49,7 +48,6 @@ let package = Package(
4948
.library(name: .serverEnvVars, targets: [.serverEnvVars])
5049
],
5150
dependencies: [
52-
.package(url: "https://github.com/swift-primitives/swift-cache-primitives.git", branch: "main"),
5351
.package(url: "https://github.com/swift-foundations/swift-environment.git", branch: "main"),
5452
.package(url: "https://github.com/swift-foundations/swift-json-web-token.git", branch: "main"),
5553
.package(url: "https://github.com/swift-foundations/swift-password.git", branch: "main"),
@@ -68,7 +66,6 @@ let package = Package(
6866
.target(
6967
name: .serverFoundation,
7068
dependencies: [
71-
.cachePrimitives,
7269
.clocksDependencies,
7370
.throttlingDependencies,
7471
.translatingDependencies,

Sources/ServerFoundation/InMemoryStore.swift

Lines changed: 0 additions & 129 deletions
This file was deleted.

0 commit comments

Comments
 (0)