CacheStoreProvider.Add(String, Object, CacheInsertOptions) 方法

定义

使用选项将指定项添加到缓存。

public:
 abstract System::Object ^ Add(System::String ^ key, System::Object ^ item, System::Web::Caching::CacheInsertOptions ^ options);
public abstract object Add (string key, object item, System.Web.Caching.CacheInsertOptions options);
abstract member Add : string * obj * System.Web.Caching.CacheInsertOptions -> obj
Public MustOverride Function Add (key As String, item As Object, options As CacheInsertOptions) As Object

参数

key
String

用于引用此项的密钥。

item
Object

要添加到缓存的项。

options
CacheInsertOptions

缓存选项。

返回

Object

已添加到缓存的对象。

适用于