ntfy-alertmanager/cache/cache.go
Thorben Günther d35b77fbc9
cache: Move to own interface package
With this interface it will be easy to support multiple cache types.
2023-03-08 16:16:21 +01:00

9 lines
277 B
Go

// Package cache includes a memory cache for ntfy-alertmanager.
package cache
// Cache is the interface that describes a cache for ntfy-alertmanager.
type Cache interface {
Set(fingerprint string, status string)
Contains(fingerprint string, status string) bool
Cleanup()
}