mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-21 19:14:30 +08:00
refactor: 缓存文件名称修改
This commit is contained in:
@@ -98,7 +98,7 @@ public abstract class BusinessBaseWithCacheAlarmModel<VarModel, DevModel, AlarmM
|
||||
/// </summary>
|
||||
protected virtual CacheDB LocalDBCacheAlarmModel()
|
||||
{
|
||||
var cacheDb = CacheDBUtil.GetCache(typeof(CacheDBItem<AlarmModel>), CurrentDevice.Id.ToString(), $"{CurrentDevice.PluginName}_{typeof(AlarmModel).FullName}_{nameof(AlarmModel)}");
|
||||
var cacheDb = CacheDBUtil.GetCache(typeof(CacheDBItem<AlarmModel>), CurrentDevice.Id.ToString(), $"{CurrentDevice.PluginName}_{typeof(AlarmModel).Name}");
|
||||
|
||||
if (!LocalDBCacheAlarmModelInited)
|
||||
{
|
||||
|
@@ -98,7 +98,7 @@ public abstract class BusinessBaseWithCacheDevModel<VarModel, DevModel> : Busine
|
||||
/// </summary>
|
||||
protected virtual CacheDB LocalDBCacheDevModel()
|
||||
{
|
||||
var cacheDb = CacheDBUtil.GetCache(typeof(CacheDBItem<DevModel>), CurrentDevice.Id.ToString(), $"{CurrentDevice.PluginName}_{typeof(DevModel).FullName}_{nameof(DevModel)}");
|
||||
var cacheDb = CacheDBUtil.GetCache(typeof(CacheDBItem<DevModel>), CurrentDevice.Id.ToString(), $"{CurrentDevice.PluginName}_{typeof(DevModel).Name}");
|
||||
if (!LocalDBCacheDevModelInited)
|
||||
{
|
||||
cacheDb.InitDb();
|
||||
|
@@ -102,7 +102,7 @@ public abstract class BusinessBaseWithCacheVarModel<VarModel> : BusinessBase
|
||||
/// </summary>
|
||||
protected virtual CacheDB LocalDBCacheVarModel()
|
||||
{
|
||||
var cacheDb = CacheDBUtil.GetCache(typeof(CacheDBItem<VarModel>), CurrentDevice.Id.ToString(), $"{CurrentDevice.PluginName}_{typeof(VarModel).FullName}_{nameof(VarModel)}");
|
||||
var cacheDb = CacheDBUtil.GetCache(typeof(CacheDBItem<VarModel>), CurrentDevice.Id.ToString(), $"{CurrentDevice.PluginName}_{typeof(VarModel).Name}");
|
||||
if (!LocalDBCacheVarModelInited)
|
||||
{
|
||||
cacheDb.InitDb();
|
||||
|
Reference in New Issue
Block a user