GenericCacheTKey, TValueGetByKey 方法

通过键获取缓存项 如果键不存在,抛出KeyNotFoundException异常

Definition

命名空间: Suresking.Utility
程序集: Suresking.Utility (在 Suresking.Utility.dll 中) 版本:1.3.22+a27276bb8ffde055e69ff608e98aafba279e1e99
C#
public static TValue GetByKey(
	TKey key
)

参数

key  TKey
缓存键

返回值

TValue
对应的缓存值

异常

ArgumentNullException当key为null时抛出
KeyNotFoundException当键不存在时抛出

参见