mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 10:24:55 +08:00
Add Check
This commit is contained in:
@@ -17,6 +17,10 @@ namespace SqlSugar
|
|||||||
|
|
||||||
public static void RemoveCache(ICacheService cacheService, string tableName)
|
public static void RemoveCache(ICacheService cacheService, string tableName)
|
||||||
{
|
{
|
||||||
|
if (cacheService == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
var keys = cacheService.GetAllKey<string>();
|
var keys = cacheService.GetAllKey<string>();
|
||||||
if (keys.HasValue())
|
if (keys.HasValue())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user