ServerProtocol.AddToCache(Type, Type, Object) 方法

定义

使用从指定的协议类型和服务器类型创建的密钥将 Object 存储在缓存中。Stores a Object in the cache using a key that is created from the specified protocol type and server type.

protected:
 void AddToCache(Type ^ protocolType, Type ^ serverType, System::Object ^ value);
protected void AddToCache (Type protocolType, Type serverType, object value);
member this.AddToCache : Type * Type * obj -> unit
Protected Sub AddToCache (protocolType As Type, serverType As Type, value As Object)

参数

protocolType
Type

用于创建密钥的 Type,将使用该密钥将 value 存储在缓存中。A Type that is used to create the key to store value in the cache.

serverType
Type

用于创建密钥的 Type,将使用该密钥将 value 存储在缓存中。A Type that is used to create the key to store value in the cache.

value
Object

要存储在缓存中的 ObjectThe Object to be stored in the cache.

适用于