1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-17 04:30:03 +02:00

Adding app/cache/store.go

This commit is contained in:
Henrik Hautakoski 2023-10-31 16:58:40 +01:00
parent d6d9fa5ca0
commit 23d05e5512

15
app/cache/store.go vendored Normal file
View file

@ -0,0 +1,15 @@
package cache
import "time"
type Store interface {
// Set an item in the store.
Set(key string, value any, TTL time.Duration) error
// Get an item from the store.
// returns an error if key is not found or there is other problems.
Get(key string, value any) error
// Check if a key exist in the store.
Has(key string) bool
}