diff --git a/src/ThingsGateway.Gateway.Application/Plugin/Business/Cache/BusinessBaseWithCacheAlarmModel.cs b/src/ThingsGateway.Gateway.Application/Plugin/Business/Cache/BusinessBaseWithCacheAlarmModel.cs index 544fa68d4..cb4f6f325 100644 --- a/src/ThingsGateway.Gateway.Application/Plugin/Business/Cache/BusinessBaseWithCacheAlarmModel.cs +++ b/src/ThingsGateway.Gateway.Application/Plugin/Business/Cache/BusinessBaseWithCacheAlarmModel.cs @@ -98,7 +98,7 @@ public abstract class BusinessBaseWithCacheAlarmModel protected virtual CacheDB LocalDBCacheAlarmModel() { - var cacheDb = CacheDBUtil.GetCache(typeof(CacheDBItem), CurrentDevice.Id.ToString(), $"{CurrentDevice.PluginName}_{typeof(AlarmModel).FullName}_{nameof(AlarmModel)}"); + var cacheDb = CacheDBUtil.GetCache(typeof(CacheDBItem), CurrentDevice.Id.ToString(), $"{CurrentDevice.PluginName}_{typeof(AlarmModel).Name}"); if (!LocalDBCacheAlarmModelInited) { diff --git a/src/ThingsGateway.Gateway.Application/Plugin/Business/Cache/BusinessBaseWithCacheDevModel.cs b/src/ThingsGateway.Gateway.Application/Plugin/Business/Cache/BusinessBaseWithCacheDevModel.cs index ed9257544..eb20011d9 100644 --- a/src/ThingsGateway.Gateway.Application/Plugin/Business/Cache/BusinessBaseWithCacheDevModel.cs +++ b/src/ThingsGateway.Gateway.Application/Plugin/Business/Cache/BusinessBaseWithCacheDevModel.cs @@ -98,7 +98,7 @@ public abstract class BusinessBaseWithCacheDevModel : Busine /// protected virtual CacheDB LocalDBCacheDevModel() { - var cacheDb = CacheDBUtil.GetCache(typeof(CacheDBItem), CurrentDevice.Id.ToString(), $"{CurrentDevice.PluginName}_{typeof(DevModel).FullName}_{nameof(DevModel)}"); + var cacheDb = CacheDBUtil.GetCache(typeof(CacheDBItem), CurrentDevice.Id.ToString(), $"{CurrentDevice.PluginName}_{typeof(DevModel).Name}"); if (!LocalDBCacheDevModelInited) { cacheDb.InitDb(); diff --git a/src/ThingsGateway.Gateway.Application/Plugin/Business/Cache/BusinessBaseWithCacheVarModel.cs b/src/ThingsGateway.Gateway.Application/Plugin/Business/Cache/BusinessBaseWithCacheVarModel.cs index 98b08dec7..6d27dece3 100644 --- a/src/ThingsGateway.Gateway.Application/Plugin/Business/Cache/BusinessBaseWithCacheVarModel.cs +++ b/src/ThingsGateway.Gateway.Application/Plugin/Business/Cache/BusinessBaseWithCacheVarModel.cs @@ -102,7 +102,7 @@ public abstract class BusinessBaseWithCacheVarModel : BusinessBase /// protected virtual CacheDB LocalDBCacheVarModel() { - var cacheDb = CacheDBUtil.GetCache(typeof(CacheDBItem), CurrentDevice.Id.ToString(), $"{CurrentDevice.PluginName}_{typeof(VarModel).FullName}_{nameof(VarModel)}"); + var cacheDb = CacheDBUtil.GetCache(typeof(CacheDBItem), CurrentDevice.Id.ToString(), $"{CurrentDevice.PluginName}_{typeof(VarModel).Name}"); if (!LocalDBCacheVarModelInited) { cacheDb.InitDb();