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:
Brad Rydzewski 2016-01-21 13:23:19 -08:00
parent cd6ad9d9dc
commit 20c1ca6e33

4
cache/cache.go vendored
View file

@ -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