mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
db.Fastest & cache
This commit is contained in:
parent
2d764f9b67
commit
28f9b36992
@ -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>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user