add chain hop

This commit is contained in:
ginuerzh
2022-09-20 17:54:03 +08:00
parent 1a1c038fd7
commit 5237f79740
14 changed files with 364 additions and 11 deletions

View File

@ -49,7 +49,9 @@ type redisSetLoader struct {
func RedisSetLoader(addr string, opts ...RedisLoaderOption) Loader {
var options redisLoaderOptions
for _, opt := range opts {
opt(&options)
if opt != nil {
opt(&options)
}
}
key := options.key