Add Remove Cache

This commit is contained in:
sunkaixuan
2017-07-03 00:50:27 +08:00
parent 50fc79296b
commit 9f34948ed1

View File

@@ -183,6 +183,16 @@ namespace SqlSugar
return CacheManager<T>.GetInstance();
}
public void RemoveCacheAll()
{
CacheManager.RemoveAllCache();
}
public void RemoveCache<T>(string key)
{
CacheManager<T>.GetInstance().Remove(key);
}
#region Private Methods
private Dictionary<string, object> DataReaderToDynamicList_Part<T>(Dictionary<string, object> readerValues, PropertyInfo item, List<T> reval)
{