refactor: 缓存文件名称修改

This commit is contained in:
Diego
2024-06-05 13:19:11 +08:00
parent 3932834172
commit 5d66b7677f
3 changed files with 3 additions and 3 deletions

View File

@@ -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)
{

View File

@@ -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();

View File

@@ -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();