You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: update SDK links in README.md
- Remove extra space at the end of the Ruby SDK link
* fix: update cmab retry configuration
- Update max retries from 3 to 1 in CmabRetryConfig struct
feat: add default values for cmab cache in DefaultCmabService
- Add constants for DEFAULT_CMAB_CACHE_TIMEOUT and DEFAULT_CMAB_CACHE_SIZE
- Assign DEFAULT_CMAB_CACHE_SIZE as 100 and DEFAULT_CMAB_CACHE_TIMEOUT as 600
- Change access control of cmabCache property to 'let' in DefaultCmabService
feat: allow custom cache size and timeout for cmab cache in DefaultCmabService
- Add new static function createDefault with parameters for cache size and timeout
- Implement creation of DefaultCmabService with custom cache size and timeout
feat: add cmab cache settings to OptimizelySdkSettings
- Add cmabCacheSize and cmabCacheTitmeoutInSecs properties to OptimizelySdkSettings struct
- Initialize properties with default values and update init method
fix: update cmab cache settings initialization in OptimizelyClient
- Update initialization of cmabService with size and timeout values from sdkSettings
chore: refactor tests for cmab cache settings in OptimizelyClientTests_ODP
- Modify test cases to check the cmabCacheSize and cmabCacheTitmeoutInSecs values
build: remove unnecessary code from FakeDecisionService
- Remove empty lines for cleanliness
refactor: improve parameter passing in FakeDecisionService constructor
- Modify the constructor to pass cmabService parameter explicitly in super.init
* chore: add CmabCache.swift and update references in project files
* fix: fix cmab cache descriptions in OptimizelySdkSettings.swift
* chore: update default CMAB cache timeout to 30 minutes
* refactor: adjust CmabCache inheritance to typealias and update cache timeout calculation
* refactor: remove unused CmabCache.swift and update references to DEFAULT_CMAB_CACHE_TIMEOUT and DEFAULT_CMAB_CACHE_SIZE
Copy file name to clipboardExpand all lines: Sources/ODP/OptimizelySdkSettings.swift
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,10 @@ public struct OptimizelySdkSettings {
25
25
lettimeoutForSegmentFetchInSecs:Int
26
26
/// The timeout in seconds of odp event dispatch - OS default timeout will be used if this is set to zero.
27
27
lettimeoutForOdpEventInSecs:Int
28
+
/// The maximum size of cmab cache
29
+
letcmabCacheSize:Int
30
+
/// The timeout in seconds of cmab cache
31
+
letcmabCacheTimeoutInSecs:Int
28
32
/// ODP features are disabled if this is set to true.
29
33
letdisableOdp:Bool
30
34
/// VUID is enabled if this is set to true.
@@ -37,6 +41,8 @@ public struct OptimizelySdkSettings {
37
41
/// - segmentsCacheTimeoutInSecs: The timeout in seconds of audience segments cache (optional. default = 600). Set to zero to disable timeout.
38
42
/// - timeoutForSegmentFetchInSecs: The timeout in seconds of odp segment fetch (optional. default = 10) - OS default timeout will be used if this is set to zero.
39
43
/// - timeoutForOdpEventInSecs: The timeout in seconds of odp event dispatch (optional. default = 10) - OS default timeout will be used if this is set to zero.
44
+
/// - cmabCacheSize: The maximum size of cmab cache (optional. default = 100).
45
+
/// - cmabCacheTimeoutInSecs: The timeout in seconds of amb cache (optional. default = 30 * 60).
40
46
/// - disableOdp: Set this flag to true (default = false) to disable ODP features
41
47
/// - enableVuid: Set this flag to true (default = false) to enable vuid.
42
48
/// - sdkName: Set this flag to override sdkName included in events
@@ -45,12 +51,16 @@ public struct OptimizelySdkSettings {
0 commit comments