@@ -98,8 +98,8 @@ store = rueidis.New(rueidis.Config{
9898### Config
9999``` go
100100type Config struct {
101- // Server username
102- //
101+ // Server username
102+ //
103103 // Optional. Default is ""
104104 Username string
105105
@@ -167,22 +167,22 @@ type Config struct {
167167 // DisableRetry disables retrying read-only commands under network errors
168168 //
169169 // Optional. The default is False
170- DisableRetry bool
170+ DisableRetry bool
171171
172- // DisableCache falls back Client.DoCache/Client.DoMultiCache to Client.Do/Client.DoMulti
173- //
174- // Optional. The default is false
175- DisableCache bool
172+ // DisableCache falls back Client.DoCache/Client.DoMultiCache to Client.Do/Client.DoMulti
173+ //
174+ // Optional. The default is false
175+ DisableCache bool
176176
177- // AlwaysPipelining makes rueidis.Client always pipeline redis commands even if they are not issued concurrently.
178- //
179- // Optional. The default is true
180- AlwaysPipelining bool
177+ // AlwaysPipelining makes rueidis.Client always pipeline redis commands even if they are not issued concurrently.
178+ //
179+ // Optional. The default is true
180+ AlwaysPipelining bool
181181
182- // Reset clears any existing keys in existing Collection
183- //
182+ // Reset clears any existing keys in existing Collection
183+ //
184184 // Optional. Default is false
185- Reset bool
185+ Reset bool
186186
187187 // DisableStartupCheck skips the initial connection validation during New.
188188 // When true and client creation fails, New returns a Storage whose
@@ -191,33 +191,33 @@ type Config struct {
191191 // Optional. Default is false
192192 DisableStartupCheck bool
193193
194- // CacheTTL TTL
195- //
196- // Optional. Default is time.Minute
197- CacheTTL time.Duration
194+ // CacheTTL TTL
195+ //
196+ // Optional. Default is time.Minute
197+ CacheTTL time.Duration
198198}
199199```
200200
201201### Default Config
202202``` go
203203var ConfigDefault = Config {
204- Username : " " ,
205- Password : " " ,
206- ClientName : " " ,
207- SelectDB : 0 ,
208- InitAddress : []string {" 127.0.0.1:6379" },
209- TLSConfig : nil ,
210- CacheSizeEachConn : rueidis.DefaultCacheBytes ,
211- RingScaleEachConn : rueidis.DefaultRingScale ,
212- ReadBufferEachConn : rueidis.DefaultReadBuffer ,
213- WriteBufferEachConn : rueidis.DefaultWriteBuffer ,
214- BlockingPoolSize : rueidis.DefaultPoolSize ,
215- PipelineMultiplex : 2 ,
216- DisableRetry : false ,
217- DisableCache : false ,
218- AlwaysPipelining : true ,
219- Reset : false ,
204+ Username : " " ,
205+ Password : " " ,
206+ ClientName : " " ,
207+ SelectDB : 0 ,
208+ InitAddress : []string {" 127.0.0.1:6379" },
209+ TLSConfig : nil ,
210+ CacheSizeEachConn : rueidis.DefaultCacheBytes ,
211+ RingScaleEachConn : rueidis.DefaultRingScale ,
212+ ReadBufferEachConn : rueidis.DefaultReadBuffer ,
213+ WriteBufferEachConn : rueidis.DefaultWriteBuffer ,
214+ BlockingPoolSize : rueidis.DefaultPoolSize ,
215+ PipelineMultiplex : 2 ,
216+ DisableRetry : false ,
217+ DisableCache : false ,
218+ AlwaysPipelining : true ,
219+ Reset : false ,
220220 DisableStartupCheck : false ,
221- CacheTTL : time.Minute ,
221+ CacheTTL : time.Minute ,
222222}
223223```
0 commit comments