我使用MemoryCache來存儲一個數據表,其中包含約60行。有時我只想刷新表格的一部分。所以我得到行我想要的集合刷新基於這樣的ID: var cachedDataSet = this.cache.Get(CacheKey) as DataSet;
var dataRows = cachedDataSet.Tables["MyTable"]
.AsEnumerable(
我想寫一個類來處理.net核心類庫中的內存緩存。如果我不使用核心,那麼我可以寫 using System.Runtime.Caching;
using System.Collections.Concurrent;
namespace n{
public class MyCache
{
readonly MemoryCache _cache;
readonly Fu