We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e6c75a commit e0dc17dCopy full SHA for e0dc17d
AsyncMux/Sources/Multiplexer.swift
@@ -97,7 +97,8 @@ public final class Multiplexer<T: Codable & Sendable>: MuxRepositoryProtocol {
97
/// Returns the value currently stored in memory or on disk, ignoring the TTL
98
public var cachedValue: T? {
99
storedValue ?? cacheKey.flatMap {
100
- MuxCacher.load(domain: MuxRootDomain, key: $0, type: T.self)
+ storedValue = MuxCacher.load(domain: MuxRootDomain, key: $0, type: T.self)
101
+ return storedValue
102
}
103
104
0 commit comments