all repos

mugit @ 9d07e8a

🐮 git server that your cow will love
1 files changed, 1 insertions(+), 1 deletions(-)
cache: dont return expired values
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-02-21 17:26:40 +0200
Change ID: lonxkmyunzvsmytvuolkmpowwooowslu
Parent: 56ad3f8
M internal/cache/cache.go

@@ -52,7 +52,7 @@ m.mu.Lock()

defer m.mu.Unlock() val, found := m.data[key] - if !found { + if !found || val.isExpired() { var t T return t, false }