mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-28 02:43:10 +01:00
6bb65f4eec
Fixes #468
16 lines
201 B
Go
16 lines
201 B
Go
package api
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/TwiN/gocache/v2"
|
|
)
|
|
|
|
const (
|
|
cacheTTL = 10 * time.Second
|
|
)
|
|
|
|
var (
|
|
cache = gocache.NewCache().WithMaxSize(100).WithEvictionPolicy(gocache.FirstInFirstOut)
|
|
)
|