public interface IDataCacheContext
Runtime context for clients to access data caches in its scope. This is used for accessing the data caching framework within the ivy variable in IvyScript snippets
The framework offers caching on three different scopes in whose context the data cache groups and entries are valid. Furthermore, the life cycle of data cache groups and entries is bound to their life cycle. The scopes are the application, the environment and the session.
Application wide caching represents some sort of global cache, its content is valid for the whole application and the same for all actors within the application.
Environment scope should be used when data source is dependent from the tenant. In ivy if Tenant A has his data in data source A and Tenant B in data source B, then the sources are stored in one environment per tenant and the data should be cached per tenant i.e. per environment.
Session scope binds cached data to the user session, i.e. it is valid from the first user request and is at latest invalidated when the user logs off or an inactivation time out is hit. This is the right spot to cache data corresponding to the current interaction or corresponding the user that is logged in
|Modifier and Type||Method and Description|
Returns the data cache for the current application
Returns the data cache for the current environment
Returns the cache for the current client session
Copyright © 2018
AXON Ivy AG
All Rights Reserved Documentation was generated
on November 12, 2018