1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-01-05 10:20:36 +02:00

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 // Default creates an in-memory cache with the default
// 24 hour expiration period. // 30 minute expiration period.
func Default() Cache { func Default() Cache {
return cache.NewMemoryWithTTL(time.Hour * 24) return cache.NewMemoryWithTTL(time.Minute * 30)
} }
// NewTTL returns an in-memory cache with the specified // NewTTL returns an in-memory cache with the specified