ControllerBaseCacheOptions Class |
Namespace: Omada.OE.AppLogic
public class CacheOptions
The ControllerBaseCacheOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | ControllerBaseCacheOptions |
Name | Description | |
---|---|---|
![]() ![]() | Default | |
![]() ![]() | EntityDataDefault |
Default options for loading/fetching "entity data" (that is, data types which have a representaion in the tblEntityDataVersion)
|
![]() | ExpiresAfter |
Cached data will expire this amount of time after it was added to the cache.
If UseSlidingExpiration is true the expiration time will be renewed every time the cached item is fetched.
|
![]() | IgnoreIfThisResult |
The result retrieved from the action delegate will *not* be added to the cache if it equals this value.
|
![]() | SkipDataCloning |
If true data fetched from the cache will not be cloned (which leads to a performance benefit).
When data is not cloned it is very important that the caller doesn't modify the retrieved result.
The option should therefore only be used with great caution and in places where this is absolutely certain that data isn't modified.
Warning: do not use this setting unless you are sure that you know what you are doing!
|
![]() | UseCacheInPartiallyEnabledMode |
Should the data be added/fetched from the cache when in we're in CacheMode.PartiallyEnabled?
Methods that load immutable data can safely set it to true - others should set it to false.
Is always set to true when *entity data* is added/fetched from the cache (because the data version is part of the key).
|
![]() | UseSlidingExpiration |
If UseSlidingExpiration is true the expiration time will be renewed every time the cached item is fetched.
|
Name | Description | |
---|---|---|
![]() | ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) |
![]() | ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) |
![]() | ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |