You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cached responses, including Redis Nils, will be invalidated either when being notified by valkey servers or when their client-side TTLs are reached. See https://github.com/redis/rueidis/issues/534 for more details.
136
+
Cached responses, including Valkey Nils, will be invalidated either when being notified by valkey servers or when their client-side TTLs are reached. See https://github.com/redis/rueidis/issues/534 for more details.
// ClientSetInfo will assign various info attributes to the current connection.
105
123
// Note that ClientSetInfo should have exactly 2 values, the lib name and the lib version respectively.
106
124
ClientSetInfo []string
@@ -170,6 +188,9 @@ type ClientOption struct {
170
188
// produce notable CPU usage reduction under load. Ref: https://github.com/redis/rueidis/issues/156
171
189
MaxFlushDelay time.Duration
172
190
191
+
// ClusterOption is the options for the valkey cluster client.
192
+
ClusterOptionClusterOption
193
+
173
194
// DisableTCPNoDelay turns on Nagle's algorithm in pipelining mode by using conn.SetNoDelay(false).
174
195
// Turning this on can result in lower p99 latencies and lower CPU usages if all your requests are small.
175
196
// But if you have large requests or fast network, this might degrade the performance. Ref: https://github.com/redis/rueidis/pull/650
@@ -181,10 +202,6 @@ type ClientOption struct {
181
202
ClientNoTouchbool
182
203
// DisableRetry disables retrying read-only commands under network errors
183
204
DisableRetrybool
184
-
// RetryDelay is the function that returns the delay that should be used before retrying the attempt.
185
-
// The default is an exponential backoff with a maximum delay of 1 second.
186
-
// Only used when DisableRetry is false.
187
-
RetryDelayRetryDelayFn
188
205
// DisableCache falls back Client.DoCache/Client.DoMultiCache to Client.Do/Client.DoMulti
189
206
DisableCachebool
190
207
// DisableAutoPipelining makes valkey.Client always pick a connection from the BlockingPool to serve each request.
@@ -206,21 +223,6 @@ type ClientOption struct {
206
223
// even if we're above the configured client eviction threshold.
207
224
ClientNoEvictbool
208
225
209
-
// ClusterOption is the options for the valkey cluster client.
210
-
ClusterOptionClusterOption
211
-
212
-
// ReplicaSelector selects a replica node when `SendToReplicas` returns true.
213
-
// If the function is set, the client will send selected command to the replica node.
214
-
// Returned value is the index of the replica node in the replicas slice.
215
-
// If the returned value is out of range, the primary node will be selected.
216
-
// If primary node does not have any replica, the primary node will be selected
217
-
// and function will not be called.
218
-
// Currently only used for cluster client.
219
-
// Each ReplicaInfo must not be modified.
220
-
// NOTE: This function can't be used with ReplicaOnly option.
221
-
// NOTE: This function must be used with SendToReplicas function.
222
-
ReplicaSelectorfunc(slotuint16, replicas []ReplicaInfo) int
223
-
224
226
// EnableReplicaAZInfo enables the client to load the replica node's availability zone.
225
227
// If true, the client will set the `AZ` field in `ReplicaInfo`.
0 commit comments