Update cache.go
set the cache to 30m instead of 24h until we have a way to flush from the UI
This commit is contained in:
parent
cd6ad9d9dc
commit
20c1ca6e33
1 changed files with 2 additions and 2 deletions
4
cache/cache.go
vendored
4
cache/cache.go
vendored
|
@ -21,9 +21,9 @@ func Set(c context.Context, key string, value interface{}) error {
|
|||
}
|
||||
|
||||
// Default creates an in-memory cache with the default
|
||||
// 24 hour expiration period.
|
||||
// 30 minute expiration period.
|
||||
func Default() Cache {
|
||||
return cache.NewMemoryWithTTL(time.Hour * 24)
|
||||
return cache.NewMemoryWithTTL(time.Minute * 30)
|
||||
}
|
||||
|
||||
// NewTTL returns an in-memory cache with the specified
|
||||
|
|
Loading…
Reference in a new issue