删除缓存时间

This commit is contained in:
柳文翔 2024-03-15 17:12:24 +08:00
parent 2845acce76
commit b484a53711
2 changed files with 2 additions and 3 deletions

View File

@ -73,8 +73,7 @@ public class TrackPullCacheService : ApplicationService, ITrackPullCacheService,
trackPullContentList); trackPullContentList);
await RedisHelper.Client.SetAsync( await RedisHelper.Client.SetAsync(
TrackPullContentKey(trackPullConfigEntity.SubSystemId, trackPullConfigEntity.ServiceProviderId), data, TrackPullContentKey(trackPullConfigEntity.SubSystemId, trackPullConfigEntity.ServiceProviderId), data);
(int)TimeSpan.FromDays(1).TotalSeconds);
return data; return data;
} }

View File

@ -74,7 +74,7 @@ public class TrackPushCacheService : ApplicationService, ITrackPushCacheService,
data.IsAutoPush = trackPushConfigEntity.IsAutoPush; data.IsAutoPush = trackPushConfigEntity.IsAutoPush;
data.ContentConfigs = ObjectMapper.Map<List<TrackPushContentConfigEntity>, List<TrackPushContentConfigDto>>(trackPushContentList); data.ContentConfigs = ObjectMapper.Map<List<TrackPushContentConfigEntity>, List<TrackPushContentConfigDto>>(trackPushContentList);
await RedisHelper.Client.SetAsync(TrackPushContentKey(trackPushConfigEntity.SubSystemId, trackPushConfigEntity.CustomId), data, (int)TimeSpan.FromDays(1).TotalSeconds); await RedisHelper.Client.SetAsync(TrackPushContentKey(trackPushConfigEntity.SubSystemId, trackPushConfigEntity.CustomId), data);
return data; return data;
} }