mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
auth_proxy: non-negative cache TTL (#17495)
fixes setex error with redis on #17377
This commit is contained in:
parent
591ea0bfe3
commit
826d33ea37
@ -292,7 +292,7 @@ func (auth *AuthProxy) Remember(id int64) *Error {
|
||||
return nil
|
||||
}
|
||||
|
||||
expiration := time.Duration(-auth.cacheTTL) * time.Minute
|
||||
expiration := time.Duration(auth.cacheTTL) * time.Minute
|
||||
|
||||
err := auth.store.Set(key, id, expiration)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user