mirror of
https://github.com/TwiN/gatus.git
synced 2025-02-16 10:20:00 +01:00
refactor(storage): Remove TODO comment about writeThroughCache
This commit is contained in:
parent
a044f1d274
commit
cca421e283
@ -333,7 +333,6 @@ func (s *Store) Insert(endpoint *core.Endpoint, result *core.Result) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: add field to automatically refresh the cache when a new result is inserted
|
|
||||||
if s.writeThroughCache != nil {
|
if s.writeThroughCache != nil {
|
||||||
cacheKeysToRefresh := s.writeThroughCache.GetKeysByPattern(endpoint.Key()+"*", 0)
|
cacheKeysToRefresh := s.writeThroughCache.GetKeysByPattern(endpoint.Key()+"*", 0)
|
||||||
for _, cacheKey := range cacheKeysToRefresh {
|
for _, cacheKey := range cacheKeysToRefresh {
|
||||||
|
Loading…
Reference in New Issue
Block a user