mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-06 12:01:27 +08:00
【feat】首页面板数据
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"pandax/pkg/events"
|
||||
"pandax/pkg/mqtt"
|
||||
"pandax/pkg/tdengine"
|
||||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -19,5 +20,7 @@ var (
|
||||
Conf *config.Config
|
||||
MqttClient *mqtt.IothubMqttClient
|
||||
)
|
||||
var Cache = cache.NewTimedCache(cache.NoExpiration, cache.DefaultCleanupInterval)
|
||||
var EventEmitter = events.EventEmitter{}
|
||||
|
||||
// Cache 默认10分钟
|
||||
var Cache = cache.NewTimedCache(cache.NoExpiration, 600*time.Second)
|
||||
|
||||
Reference in New Issue
Block a user