Skip to content

How to get config in Hook? #2113

Answered by vmihailenco
jiekun asked this question in Q&A
Discussion options

You must be logged in to vote

You can save some information on the struct that implements hooks interface - see https://github.com/go-redis/redis/blob/master/extra/redisotel/redisotel.go#L21-L22

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jiekun
Comment options

Answer selected by jiekun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants