Methods_T_Cyjb_Cache_LruCache_2 - CYJB/Cyjb GitHub Wiki
The LruCache(TKey, TValue) generic type exposes the following members.
名称 | 说明 | |
---|---|---|
![]() |
Add | 将指定的键和对象添加到缓存中,无论键是否存在。 |
![]() |
Clear | 清空缓存中的所有对象。 |
![]() |
Contains | 确定缓存中是否包含指定的键。 |
![]() |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
![]() |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
![]() |
GetOrAdd(TKey, Func(TKey, TValue)) | 从缓存中获取与指定的键关联的对象,如果不存在则将新对象添加到缓存中。 |
![]() |
GetOrAdd(TArg)(TKey, TArg, Func(TKey, TArg, TValue)) | 从缓存中获取与指定的键关联的对象,如果不存在则将新对象添加到缓存中。 |
![]() |
GetType | Gets the Type of the current instance. (继承自 Object。) |
![]() |
Remove | 从缓存中移除具有指定键的对象。 |
![]() |
ToString | Returns a string that represents the current object. (继承自 Object。) |
![]() |
TryGet | 尝试从缓存中获取与指定的键关联的对象。 |