Skip to content

Add Redis cache options used by Redigo #2550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 2, 2020

Conversation

kwSeo
Copy link
Contributor

@kwSeo kwSeo commented Apr 30, 2020

What this PR does:

I think Redis cache configuration need some more options.
I added the configuration options used by Redigo.
(reference: https://godoc.org/github.com/gomodule/redigo/redis)

  • idle_timeout
  • wait
  • max_conn_lifetime

Which issue(s) this PR fixes:

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
…fetime

Signed-off-by: Kyeongwon Seo <ruddnjs1230@gmail.com>
kwSeo added 2 commits April 30, 2020 22:48
Signed-off-by: Kyeongwon Seo <ruddnjs1230@gmail.com>
Signed-off-by: Kyeongwon Seo <ruddnjs1230@gmail.com>
@kwSeo kwSeo force-pushed the add_redis_flags branch from caa44e4 to 2da3461 Compare April 30, 2020 13:49
Signed-off-by: Kyeongwon Seo <ruddnjs1230@gmail.com>
Copy link
Contributor

@gouthamve gouthamve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nit!

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (modulo nit by Goutham)

Signed-off-by: Kyeongwon Seo <ruddnjs1230@gmail.com>
@kwSeo
Copy link
Contributor Author

kwSeo commented May 1, 2020

@pracucci @gouthamve
Thank you for review!
Renamed the Redis cache wait option.

@gouthamve gouthamve merged commit ac79665 into cortexproject:master May 2, 2020
@kwSeo kwSeo deleted the add_redis_flags branch May 2, 2020 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants