GenericCacheTKey, TValueGetAllItems 方法

获取缓存中的所有键值对 返回的列表是只读的,对缓存的修改不会影响此列表 注意:在缓存较大时,此操作可能会消耗较多内存

Definition

命名空间: Suresking.Utility
程序集: Suresking.Utility (在 Suresking.Utility.dll 中) 版本:1.3.22+a27276bb8ffde055e69ff608e98aafba279e1e99
C#
public static IReadOnlyList<KeyValuePair<TKey, TValue>> GetAllItems()

返回值

IReadOnlyListKeyValuePairTKey, TValue
缓存键值对的只读列表

参见