mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
auth_proxy: non-negative cache TTL (#17495)
fixes setex error with redis on #17377
This commit is contained in:
@@ -292,7 +292,7 @@ func (auth *AuthProxy) Remember(id int64) *Error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
expiration := time.Duration(-auth.cacheTTL) * time.Minute
|
expiration := time.Duration(auth.cacheTTL) * time.Minute
|
||||||
|
|
||||||
err := auth.store.Set(key, id, expiration)
|
err := auth.store.Set(key, id, expiration)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user