mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
db.Fastest & cache
This commit is contained in:
@@ -302,6 +302,14 @@ namespace SqlSugar
|
||||
CacheSchemeMain.RemoveCacheByLike(service, CacheKeyLike);
|
||||
}
|
||||
}
|
||||
if (this.context.CurrentConnectionConfig?.MoreSettings?.IsAutoRemoveDataCache == true)
|
||||
{
|
||||
var cacheService = this.context.CurrentConnectionConfig?.ConfigureExternalServices?.DataInfoCacheService;
|
||||
if (cacheService != null)
|
||||
{
|
||||
CacheSchemeMain.RemoveCache(cacheService, this.context.EntityMaintenance.GetTableName<T>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user