This commit is contained in:
parent
c17cd92268
commit
014898b8df
|
@ -110,6 +110,7 @@ func setCachedTokenResponseValue(conn redis.Conn, key string, r *auth.TokenRespo
|
|||
return fmt.Errorf("error while setting token: %v", err)
|
||||
}
|
||||
conn.Do("EXPIRE", key, uint64(10*time.Minute/time.Second))
|
||||
return nil
|
||||
}
|
||||
|
||||
// getCachedValue gets the cached value from Redis
|
||||
|
|
Loading…
Reference in New Issue
Block a user