mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
db.Fastest & cache
This commit is contained in:
@@ -302,6 +302,14 @@ namespace SqlSugar
|
|||||||
CacheSchemeMain.RemoveCacheByLike(service, CacheKeyLike);
|
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