Skip to content

Commit

Permalink
feat: 超大订阅方案 (closed #2429)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyyalt committed Nov 14, 2024
1 parent c5b294a commit d17987f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/backend/components/collections/agent_new/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,22 @@ class AgentCommonData(CommonData):
class RedisAgentCommonData(RedisCommonData):

# 默认接入点
@property
def default_ap(self) -> models.AccessPoint:
return self._get_attr_from_redis("default_ap")

# 主机ID - 接入点 映射关系
@property
def host_id__ap_map(self) -> Dict[int, models.AccessPoint]:
return self._get_attr_from_redis("host_id__ap_map")

# AgentStep 适配器
@property
def agent_step_adapter(self) -> AgentStepAdapter:
return self._get_attr_from_redis("agent_step_adapter")

# 注入AP_ID
@property
def injected_ap_id(self) -> int:
return self._get_attr_from_redis("injected_ap_id")

Expand Down

0 comments on commit d17987f

Please sign in to comment.