diff --git a/Sources/eppo/AssignmentCache.swift b/Sources/eppo/AssignmentCache.swift index 1edecfd..7c6d94b 100644 --- a/Sources/eppo/AssignmentCache.swift +++ b/Sources/eppo/AssignmentCache.swift @@ -6,10 +6,17 @@ public protocol AssignmentCache { } public struct AssignmentCacheKey { - var subjectKey: String - var flagKey: String - var allocationKey: String - var variationKey: String + public var subjectKey: String + public var flagKey: String + public var allocationKey: String + public var variationKey: String + + public init(subjectKey: String, flagKey: String, allocationKey: String, variationKey: String) { + self.subjectKey = subjectKey + self.flagKey = flagKey + self.allocationKey = allocationKey + self.variationKey = variationKey + } } public class InMemoryAssignmentCache: AssignmentCache {