Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions DevCycle/Models/Cache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ protocol CacheServiceProtocol {

class CacheService: CacheServiceProtocol {
struct CacheKeys {
static let platform = PlatformDetails()
static let versionPrefix = "VERSION_\(platform.sdkVersion)"

static let anonUserId = "ANONYMOUS_USER_ID"
static let identifiedConfigKey = "IDENTIFIED_CONFIG"
static let anonymousConfigKey = "ANONYMOUS_CONFIG"
static let identifiedConfigKey = "\(versionPrefix).IDENTIFIED_CONFIG"
static let anonymousConfigKey = "\(versionPrefix).ANONYMOUS_CONFIG"
static let userIdSuffix = ".USER_ID"
static let expiryDateSuffix = ".EXPIRY_DATE"

Expand Down
Loading