Skip to main content
A newer version of this page is available. .

Session.CacheBehavior Property

OBSOLETE

Use IdentityMapBehavior instead

Gets or sets the session’s cache behavior.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v18.2.dll

Declaration

[DefaultValue(CacheBehavior.Default)]
[Obsolete("Use IdentityMapBehavior instead")]
[Browsable(false)]
public CacheBehavior CacheBehavior { get; set; }

Property Value

Type Default Description
CacheBehavior **Default**

A CacheBehavior enumeration value that specifies the session’s cache behavior.

Available values:

Name Description
Default

The behavior is determined by XPO. For instance, in XPO version 8.1 this is equal to CacheBehavior.Weak.

Weak

Instances of the System.WeakReference class are used.

Strong

Direct references to objects are used.

See Also