mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
Increase default cache time to 10 minutes
This commit is contained in:
parent
d5de4b8f65
commit
e4ec6591b9
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ func fromCache(key string) (Parsed, bool) {
|
|||
}
|
||||
|
||||
func toCache(key string, val Parsed) {
|
||||
val["ttl"] = time.Now().Add(5 * time.Minute)
|
||||
val["ttl"] = time.Now().Add(10 * time.Minute)
|
||||
Cache.Lock()
|
||||
Cache.m[key] = val
|
||||
Cache.Unlock()
|
||||
|
|
Loading…
Add table
Reference in a new issue