MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / write_token_cache

Function write_token_cache

wxapp/BREO.py:40–44  ·  view source on GitHub ↗
(cache)

Source from the content-addressed store, hash-verified

38 return {}
39
40def write_token_cache(cache):
41 try:
42 TOKEN_CACHE_PATH.write_text(json.dumps(cache, ensure_ascii=False, indent=2), encoding="utf-8")
43 except Exception as e:
44 print(f"⚠️ 写入token缓存失败: {e}")
45
46def mask_token(token):
47 if not token:

Callers 2

save_cached_tokenFunction · 0.85
remove_cached_tokenFunction · 0.85

Calls 1

printFunction · 0.50

Tested by

no test coverage detected