Skip to content

M_Cyjb_Cache_ICache_2_Contains

CYJB edited this page Mar 20, 2024 · 13 revisions

ICache(TKey, TValue).Contains 方法

确定缓存中是否包含指定的键。

Namespace: Cyjb.Cache
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

bool Contains(
	TKey key
)

参数

 

key
Type: TKey
要在缓存中查找的键。

返回值

Type: Boolean
如果缓存中包含具有指定键的元素,则为 true;否则为 false

参见

Reference

ICache(TKey, TValue) 接口
Cyjb.Cache 命名空间

Clone this wiki locally