From 90c76d665e4bf1d1f3e45e73176152af24e3384d Mon Sep 17 00:00:00 2001 From: shuwenn <47200617+alphabetc1@users.noreply.github.com> Date: Sat, 18 Apr 2026 04:06:28 +0800 Subject: [PATCH] [HiCache] fix: HiCacheFile component key suffixing (#22891) Co-authored-by: Zhangheng --- python/sglang/srt/mem_cache/hicache_storage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/sglang/srt/mem_cache/hicache_storage.py b/python/sglang/srt/mem_cache/hicache_storage.py index fa0a5769b..29b72ae3d 100644 --- a/python/sglang/srt/mem_cache/hicache_storage.py +++ b/python/sglang/srt/mem_cache/hicache_storage.py @@ -43,6 +43,9 @@ class PoolName(str, Enum): MAMBA = "mamba" INDEXER = "indexer" + def __str__(self) -> str: + return self.value + class PoolHitPolicy(str, Enum): """Hit policy for batch_exists_v2 per-pool prefix matching.