We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ec8ba7 commit ded1e19Copy full SHA for ded1e19
lib/resty/redis/connector.lua
@@ -28,14 +28,12 @@ local mt = { __index = _M }
28
local DEFAULTS = {
29
host = "127.0.0.1",
30
port = 6379,
31
- path = nil,
+ path = nil, -- /tmp/redis.sock
32
password = nil,
33
db = 0,
34
master_name = "mymaster",
35
role = "master", -- master | slave | any (tries master first, failover to a slave)
36
- sentinels = nil, {
37
- { host = "127.0.0.1", port = 6379 }
38
- },
+ sentinels = nil,
39
cluster_startup_nodes = {},
40
}
41
@@ -59,7 +57,7 @@ function _M.set_read_timeout(self, timeout)
59
57
end
60
58
61
62
-function _M.set_connect_options(self, options)
+function _M.set_connection_options(self, options)
63
self.connection_options = options
64
65
0 commit comments