diff --git a/internal/cache/in_memory.go b/internal/cache/in_memory.go index 2140d3474..8f6b11113 100644 --- a/internal/cache/in_memory.go +++ b/internal/cache/in_memory.go @@ -129,6 +129,9 @@ func (s *MemoryStore) GetAllForHashAndDelete(hash string) (map[string][]byte, er func (s *MemoryStore) CountElementsForHash(hash string) (int64, error) { hashMap, err := s.GetAllForHash(hash) if err != nil { + if errors.Is(err, ErrCacheNotFound) { + return 0, nil + } return 0, err }