Click or drag to resize

ControllerBaseCacheOptions Class

Options used when adding data to the cache.
Inheritance Hierarchy
SystemObject
  Omada.OE.AppLogicControllerBaseCacheOptions

Namespace:  Omada.OE.AppLogic
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public class CacheOptions

The ControllerBaseCacheOptions type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyStatic memberDefault
Public propertyStatic memberEntityDataDefault
Default options for loading/fetching "entity data" (that is, data types which have a representaion in the tblEntityDataVersion)
Public propertyExpiresAfter
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.
Public propertyIgnoreIfThisResult
The result retrieved from the action delegate will *not* be added to the cache if it equals this value.
Public propertySkipDataCloning
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!
Public propertyUseCacheInPartiallyEnabledMode
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).
Public propertyUseSlidingExpiration
If UseSlidingExpiration is true the expiration time will be renewed every time the cached item is fetched.
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also