ntfy-alertmanager/cache/cache.go

10 lines
277 B
Go
Raw Normal View History

// 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()
}