| 12345678910111213141516171819202122232425262728 | package cacheimport (	"time"	"github.com/uozi-tech/cosy/logger")const (	NodeCacheKey = "enabled_nodes"	NodeCacheTTL = 10 * time.Minute)// InvalidateNodeCache removes the node cache entryfunc InvalidateNodeCache() {	Del(NodeCacheKey)	logger.Debug("Invalidated node cache")}// GetCachedNodes retrieves nodes from cachefunc GetCachedNodes() (interface{}, bool) {	return Get(NodeCacheKey)}// SetCachedNodes stores nodes in cachefunc SetCachedNodes(data interface{}) {	Set(NodeCacheKey, data, NodeCacheTTL)}
 |