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 f34f6dd commit 26e9abbCopy full SHA for 26e9abb
DevCycle/Models/Cache.swift
@@ -18,9 +18,12 @@ protocol CacheServiceProtocol {
18
19
class CacheService: CacheServiceProtocol {
20
struct CacheKeys {
21
+ static let platform = PlatformDetails()
22
+ static let versionPrefix = "VERSION_\(platform.sdkVersion)"
23
+
24
static let anonUserId = "ANONYMOUS_USER_ID"
- static let identifiedConfigKey = "IDENTIFIED_CONFIG"
- static let anonymousConfigKey = "ANONYMOUS_CONFIG"
25
+ static let identifiedConfigKey = "\(versionPrefix).IDENTIFIED_CONFIG"
26
+ static let anonymousConfigKey = "\(versionPrefix).ANONYMOUS_CONFIG"
27
static let userIdSuffix = ".USER_ID"
28
static let expiryDateSuffix = ".EXPIRY_DATE"
29
0 commit comments