Back to Devexpress

Session.DropCache() Method

xpo-devexpress-dot-xpo-dot-session-66a72d28.md

latest1.3 KB
Original Source

Session.DropCache() Method

OBSOLETE

Use DropIdentityMap instead

Clears the object cache.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
[Obsolete("Use DropIdentityMap() instead")]
[Browsable(false)]
public void DropCache()
vb
<Obsolete("Use DropIdentityMap() instead")>
<Browsable(False)>
Public Sub DropCache

Remarks

All the persistent objects which were loaded using the current session are stored in the object cache. The DropCache method invalidates the object references thus enabling the garbage collector to free up the space which is occupied by the session object at a later time.

Note : Calling the DropCache method has the same effect as reconnecting a session.

See Also

Session Class

Session Members

DevExpress.Xpo Namespace