Skip to content

Overload_Cyjb_Cache_ConcurrentLruCache_2_GetOrAdd

CYJB edited this page Apr 5, 2022 · 1 revision

ConcurrentLruCache(TKey, TValue).GetOrAdd 方法

从缓存中获取与指定的键关联的对象,如果不存在则将新对象添加到缓存中。

重载列表

 

名称 说明
公共方法 GetOrAdd(TKey, Func(TKey, TValue)) 从缓存中获取与指定的键关联的对象,如果不存在则将新对象添加到缓存中。
公共方法 GetOrAdd(TArg)(TKey, TArg, Func(TKey, TArg, TValue)) 从缓存中获取与指定的键关联的对象,如果不存在则将新对象添加到缓存中。
  Back to Top

参见

Reference

ConcurrentLruCache(TKey, TValue) 类
Cyjb.Cache 命名空间

Clone this wiki locally