forked from GitHubSecurityLab/seclab-taskflow-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackend.py
More file actions
28 lines (19 loc) · 657 Bytes
/
Copy pathbackend.py
File metadata and controls
28 lines (19 loc) · 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# SPDX-FileCopyrightText: GitHub, Inc.
# SPDX-License-Identifier: MIT
from typing import Any
class Backend:
def __init__(self, memcache_state_dir: str):
self.memcache_state_dir = memcache_state_dir
def set_state(self, key: str, value: Any) -> str:
pass
def get_state(self, key: str) -> Any:
pass
def add_state(self, key: str, value: Any) -> str:
pass
def list_keys(self) -> str:
pass
def clear_cache(self) -> str:
pass
def snapshot_state(self) -> dict[str, Any]:
"""Return all keys with their merged values as a dict. Safe to call externally."""
return {}