다음을 통해 공유


ICacheable Interface

This interface should be implemented by objects that will be cached by a streaming command. It allows the command to keep track of how much data it has cached.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Interface ICacheable
public interface ICacheable
public interface class ICacheable
type ICacheable =  interface end
public interface ICacheable

The ICacheable type exposes the following members.

Methods

  Name Description
Public method GetCachedSize Returns the approximate size in bytes of the object as it will be stored in the cache of the command. The command uses this value to determine how much data it is currently caching to determine when it should start streaming.This value does not have to be an exact size of the object but can be a quick estimate.

Top

See Also

Reference

Microsoft.TeamFoundation.Framework.Server Namespace