mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-05 12:06:20 +01:00
Adds the review-comments-and-docs skill (1282-word body) and two evaluation suites: a 21-case measured suite for the skill, and a harness that runs the two concurrency scenarios previously left unrun in agents/evals/global-rules.md.
17 lines
388 B
Python
17 lines
388 B
Python
# SPDX-License-Identifier: MIT
|
|
# Copyright (c) 2026 Edge Systems
|
|
|
|
"""Gateway state touched from both the request and refresh paths."""
|
|
|
|
# Shared mutable state. The request handler mutates it through cache.get/put; the refresh
|
|
# thread clears it directly.
|
|
from gateway.cache import _cache, _hits
|
|
|
|
LAST_REFRESH_TS = 0.0
|
|
|
|
|
|
def invalidate():
|
|
global _hits
|
|
_cache.clear()
|
|
_hits = 0
|