【发布时间】:2018-11-10 20:57:58
【问题描述】:
我正在尝试从我的列表中删除一项。但是,我正在从缓存中获取列表。 在此之后,我将删除我的功能中的一项。这会影响我的缓存列表。如果我再次尝试从另一个页面的缓存中获取缓存列表。删除的项目丢失了怎么可能?
例子,
var IList list;
if(condition)
list=CacheManagement.GetFromCache();
else
list=SqlManagement.GetFromSql();
list.removeall(x=>x.id==1);
//end of my function
【问题讨论】:
标签: c# memcached generic-list