refactor(redis): add NonBlock config, disable redis ping by default (#3073)
This commit is contained in:
@@ -33,6 +33,9 @@ func getClient(r *Redis) (*red.Client, error) {
|
||||
TLSConfig: tlsConfig,
|
||||
})
|
||||
store.AddHook(durationHook)
|
||||
for _, hook := range r.hooks {
|
||||
store.AddHook(hook)
|
||||
}
|
||||
|
||||
return store, nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user