Key behavior cache
An overview of the key behavior cache facet's configuration options and calculation logic.
Note
The KeyBehaviorCache
class has been deprecated but will be reinstated in a future release. You can use this class even though it is currently marked as obsolete.
The key behavior cache is a calculated facet that stores information about a contact’s most recently triggered events. The key behavior cache facet is represented by the Sitecore.XConnect.Collection.Model.KeyBehaviorCache
class.
The following table describes where the data each list of Sitecore.XConnect.Collection.Model.KeyBehaviorCacheEntry
comes from:
Property | Calculation logic |
---|---|
| Taken from interaction’s |
| Taken from interaction’s |
| Taken from the interaction’s |
| Taken from interaction’s |
| Taken from interaction’s |
| Taken from the interaction’s |
| Not currently set. |
Entries are trimmed from each list if:
The associated interaction falls outside the configured maximum time period (for example, 30 days)
The maximum number of list cache entries has been exceeded - the oldest cache entries are trimmed
The number of unique interactions represented by all cache entries exceeds the maximum - the oldest cache entries are trimmed
Note
If the maximum interaction count is 25 and each cache entry is represented by a unique interaction, the list is limited to 25 entries even if the maximum cache entry count is 50.
The following configuration options are defined in two locations in the \App_data\config\sitecore\Collection\sc.XConnect.Collection.Model.Plugins.xml
. You must update the configuration values in both locations:
<IContactMergeHandler.KeyBehaviorCacheHandler>
<ICalculatedFacetHandler.KeyBehaviorCacheHandler>
Element | Description |
---|---|
| Specifies the maximum number of items in the cache for a given category, such as goals, page events, and so on. The default value is 50 entries. |
| Specifies the maximum period for interactions that xDB uses during updates. The default value is 30 days. |
| Specifies the maximum number of interactions that xDB examines during updates. The default value is 25 interactions. |