+2
-3
appview/cache/session/store.go
+2
-3
appview/cache/session/store.go
···
54
54
return err
55
55
}
56
56
57
-
// set with ttl (expires in + buffer)
58
-
expiry, _ := time.Parse(time.RFC3339, session.Expiry)
59
-
ttl := time.Until(expiry) + time.Minute
57
+
// set with ttl (7 days)
58
+
ttl := 7 * 24 * time.Hour
60
59
61
60
return s.cache.Set(ctx, key, data, ttl).Err()
62
61
}