valkey-glide 1.3.4rc1__cp313-cp313-macosx_11_0_arm64.whl → 2.0.0rc6__cp313-cp313-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of valkey-glide might be problematic. Click here for more details.

Files changed (32) hide show
  1. glide/__init__.py +11 -7
  2. glide/async_commands/{transaction.py → batch.py} +1413 -987
  3. glide/async_commands/bitmap.py +94 -85
  4. glide/async_commands/cluster_commands.py +308 -123
  5. glide/async_commands/command_args.py +7 -6
  6. glide/async_commands/core.py +1304 -714
  7. glide/async_commands/server_modules/ft.py +83 -14
  8. glide/async_commands/server_modules/ft_options/ft_aggregate_options.py +15 -8
  9. glide/async_commands/server_modules/ft_options/ft_create_options.py +23 -11
  10. glide/async_commands/server_modules/ft_options/ft_profile_options.py +12 -7
  11. glide/async_commands/server_modules/ft_options/ft_search_options.py +12 -6
  12. glide/async_commands/server_modules/glide_json.py +134 -43
  13. glide/async_commands/server_modules/json_batch.py +157 -127
  14. glide/async_commands/sorted_set.py +39 -29
  15. glide/async_commands/standalone_commands.py +199 -95
  16. glide/async_commands/stream.py +94 -87
  17. glide/config.py +165 -105
  18. glide/constants.py +8 -4
  19. glide/glide.cpython-313-darwin.so +0 -0
  20. glide/glide_client.py +273 -94
  21. glide/logger.py +1 -1
  22. glide/protobuf/command_request_pb2.py +15 -15
  23. glide/protobuf/command_request_pb2.pyi +69 -46
  24. glide/protobuf/connection_request_pb2.py +15 -13
  25. glide/protobuf/connection_request_pb2.pyi +57 -29
  26. glide/protobuf/response_pb2.pyi +8 -9
  27. glide/protobuf_codec.py +7 -6
  28. glide/routes.py +41 -8
  29. {valkey_glide-1.3.4rc1.dist-info → valkey_glide-2.0.0rc6.dist-info}/METADATA +29 -8
  30. valkey_glide-2.0.0rc6.dist-info/RECORD +37 -0
  31. valkey_glide-1.3.4rc1.dist-info/RECORD +0 -37
  32. {valkey_glide-1.3.4rc1.dist-info → valkey_glide-2.0.0rc6.dist-info}/WHEEL +0 -0
@@ -115,7 +115,8 @@ async def search(
115
115
  options: Optional[FtSearchOptions],
116
116
  ) -> FtSearchResponse:
117
117
  """
118
- Uses the provided query expression to locate keys within an index. Once located, the count and/or the content of indexed fields within those keys can be returned.
118
+ Uses the provided query expression to locate keys within an index. Once located, the count and/or the content of indexed
119
+ fields within those keys can be returned.
119
120
 
120
121
  Args:
121
122
  client (TGlideClient): The client to execute the command.
@@ -124,8 +125,11 @@ async def search(
124
125
  options (Optional[FtSearchOptions]): The search options.
125
126
 
126
127
  Returns:
127
- FtSearchResponse: A two element array, where first element is count of documents in result set, and the second element, which has the format Mapping[TEncodable, Mapping[TEncodable, TEncodable]] is a mapping between document names and map of their attributes.
128
- If count(option in `FtSearchOptions`) is set to true or limit(option in `FtSearchOptions`) is set to FtSearchLimit(0, 0), the command returns array with only one element - the count of the documents.
128
+ FtSearchResponse: A two element array, where first element is count of documents in result set, and the second
129
+ element, which has the format Mapping[TEncodable, Mapping[TEncodable, TEncodable]] is a mapping between document
130
+ names and map of their attributes.
131
+ If count(option in `FtSearchOptions`) is set to true or limit(option in `FtSearchOptions`) is set to
132
+ FtSearchLimit(0, 0), the command returns array with only one element - the count of the documents.
129
133
 
130
134
  Examples:
131
135
  For the following example to work the following must already exist:
@@ -133,8 +137,20 @@ async def search(
133
137
  - A key named {json:}1 with value {"a":1, "b":2}
134
138
 
135
139
  >>> from glide import ft
136
- >>> await ft.search(glide_client, "idx", "*", options=FtSeachOptions(return_fields=[ReturnField(field_identifier="first"), ReturnField(field_identifier="second")]))
137
- [1, { b'json:1': { b'first': b'42', b'second': b'33' } }] # The first element, 1 is the number of keys returned in the search result. The second element is a map of data queried per key.
140
+ >>> await ft.search(
141
+ ... glide_client,
142
+ ... "idx",
143
+ ... "*",
144
+ ... options=FtSeachOptions(
145
+ ... return_fields=[
146
+ ... ReturnField(field_identifier="first"),
147
+ ... ReturnField(field_identifier="second")
148
+ ... ]
149
+ ... )
150
+ ... )
151
+ [1, { b'json:1': { b'first': b'42', b'second': b'33' } }]
152
+ # The first element, 1 is the number of keys returned in the search result. The second element is a map of
153
+ # data queried per key.
138
154
  """
139
155
  args: List[TEncodable] = [CommandNames.FT_SEARCH, index_name, query]
140
156
  if options:
@@ -220,7 +236,8 @@ async def info(client: TGlideClient, index_name: TEncodable) -> FtInfoResponse:
220
236
  FtInfoResponse: Nested maps with info about the index. See example for more details.
221
237
 
222
238
  Examples:
223
- An index with name 'myIndex', 1 text field and 1 vector field is already created for gettting the output of this example.
239
+ An index with name 'myIndex', 1 text field and 1 vector field is already created for gettting the output of this
240
+ example.
224
241
  >>> from glide import ft
225
242
  >>> await ft.info(glide_client, "myIndex")
226
243
  [
@@ -236,7 +253,26 @@ async def info(client: TGlideClient, index_name: TEncodable) -> FtInfoResponse:
236
253
  b'type', b'VECTOR',
237
254
  b'option', b'',
238
255
  b'vector_params', [
239
- b'algorithm', b'HNSW', b'data_type', b'FLOAT32', b'dimension', 2, b'distance_metric', b'L2', b'initial_capacity', 1000, b'current_capacity', 1000, b'maximum_edges', 16, b'ef_construction', 200, b'ef_runtime', 10, b'epsilon', b'0.01'
256
+ b'algorithm',
257
+ b'HNSW',
258
+ b'data_type',
259
+ b'FLOAT32',
260
+ b'dimension',
261
+ 2,
262
+ b'distance_metric',
263
+ b'L2',
264
+ b'initial_capacity',
265
+ 1000,
266
+ b'current_capacity',
267
+ 1000,
268
+ b'maximum_edges',
269
+ 16,
270
+ b'ef_construction',
271
+ 200,
272
+ b'ef_runtime',
273
+ 10,
274
+ b'epsilon',
275
+ b'0.01'
240
276
  ]
241
277
  ],
242
278
  [
@@ -313,7 +349,8 @@ async def aggregate(
313
349
  options: Optional[FtAggregateOptions],
314
350
  ) -> FtAggregateResponse:
315
351
  """
316
- A superset of the FT.SEARCH command, it allows substantial additional processing of the keys selected by the query expression.
352
+ A superset of the FT.SEARCH command, it allows substantial additional processing of the keys selected by the query
353
+ expression.
317
354
 
318
355
  Args:
319
356
  client (TGlideClient): The client to execute the command.
@@ -322,12 +359,34 @@ async def aggregate(
322
359
  options (Optional[FtAggregateOptions]): The optional arguments for the command.
323
360
 
324
361
  Returns:
325
- FtAggregateResponse: An array containing a mapping of field name and associated value as returned after the last stage of the command.
362
+ FtAggregateResponse: An array containing a mapping of field name and associated value as returned after the last stage
363
+ of the command.
326
364
 
327
365
  Examples:
328
366
  >>> from glide import ft
329
- >>> await ft.aggregate(glide_client, "myIndex", "*", FtAggregateOptions(loadFields=["__key"], clauses=[GroupBy(["@condition"], [Reducer("COUNT", [], "bicycles")])]))
330
- [{b'condition': b'refurbished', b'bicycles': b'1'}, {b'condition': b'new', b'bicycles': b'5'}, {b'condition': b'used', b'bicycles': b'4'}]
367
+ >>> await ft.aggregate(
368
+ ... glide_client,
369
+ ... "myIndex",
370
+ ... "*",
371
+ ... FtAggregateOptions(
372
+ ... loadFields=["__key"],
373
+ ... clauses=[GroupBy(["@condition"], [Reducer("COUNT", [], "bicycles")])]
374
+ ... )
375
+ ... )
376
+ [
377
+ {
378
+ b'condition': b'refurbished',
379
+ b'bicycles': b'1'
380
+ },
381
+ {
382
+ b'condition': b'new',
383
+ b'bicycles': b'5'
384
+ },
385
+ {
386
+ b'condition': b'used',
387
+ b'bicycles': b'4'
388
+ }
389
+ ]
331
390
  """
332
391
  args: List[TEncodable] = [CommandNames.FT_AGGREGATE, index_name, query]
333
392
  if options:
@@ -347,11 +406,21 @@ async def profile(
347
406
  options (FtProfileOptions): Options for the command.
348
407
 
349
408
  Returns:
350
- FtProfileResponse: A two-element array. The first element contains results of query being profiled, the second element stores profiling information.
409
+ FtProfileResponse: A two-element array. The first element contains results of query being profiled, the second element
410
+ stores profiling information.
351
411
 
352
412
  Examples:
353
- >>> ftSearchOptions = FtSeachOptions(return_fields=[ReturnField(field_identifier="a", alias="a_new"), ReturnField(field_identifier="b", alias="b_new")])
354
- >>> await ft.profile(glide_client, "myIndex", FtProfileOptions.from_query_options(query="*", queryOptions=ftSearchOptions))
413
+ >>> ftSearchOptions = FtSeachOptions(
414
+ ... return_fields=[
415
+ ... ReturnField(field_identifier="a", alias="a_new"),
416
+ ... ReturnField(field_identifier="b", alias="b_new")
417
+ ... ]
418
+ ... )
419
+ >>> await ft.profile(
420
+ ... glide_client,
421
+ ... "myIndex",
422
+ ... FtProfileOptions.from_query_options(query="*", queryOptions=ftSearchOptions)
423
+ ... )
355
424
  [
356
425
  [
357
426
  2,
@@ -1,6 +1,5 @@
1
1
  # Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
2
2
  from abc import ABC, abstractmethod
3
- from enum import Enum
4
3
  from typing import List, Mapping, Optional
5
4
 
6
5
  from glide.async_commands.command_args import OrderBy
@@ -55,7 +54,8 @@ class FtAggregateLimit(FtAggregateClause):
55
54
 
56
55
  class FtAggregateFilter(FtAggregateClause):
57
56
  """
58
- A clause for filtering the results using predicate expression relating to values in each result. It is applied post query and relate to the current state of the pipeline.
57
+ A clause for filtering the results using predicate expression relating to values in each result. It is applied post query
58
+ and relate to the current state of the pipeline.
59
59
  """
60
60
 
61
61
  def __init__(self, expression: TEncodable):
@@ -79,7 +79,8 @@ class FtAggregateFilter(FtAggregateClause):
79
79
 
80
80
  class FtAggregateReducer:
81
81
  """
82
- A clause for reducing the matching results in each group using a reduction function. The matching results are reduced into a single record.
82
+ A clause for reducing the matching results in each group using a reduction function. The matching results are reduced into
83
+ a single record.
83
84
  """
84
85
 
85
86
  def __init__(
@@ -130,7 +131,8 @@ class FtAggregateGroupBy(FtAggregateClause):
130
131
 
131
132
  Args:
132
133
  properties (List[TEncodable]): The list of properties to be used for grouping the results in the pipeline.
133
- reducers (List[Reducer]): The list of functions that handles the group entries by performing multiple aggregate operations.
134
+ reducers (List[Reducer]): The list of functions that handles the group entries by performing multiple
135
+ aggregate operations.
134
136
  """
135
137
  self.properties = properties
136
138
  self.reducers = reducers
@@ -210,7 +212,8 @@ class FtAggregateSortBy(FtAggregateClause):
210
212
 
211
213
  class FtAggregateApply(FtAggregateClause):
212
214
  """
213
- A clause for applying a 1-to-1 transformation on one or more properties and stores the result as a new property down the pipeline or replaces any property using this transformation.
215
+ A clause for applying a 1-to-1 transformation on one or more properties and stores the result as a new property down the
216
+ pipeline or replaces any property using this transformation.
214
217
  """
215
218
 
216
219
  def __init__(self, expression: TEncodable, name: TEncodable):
@@ -219,7 +222,8 @@ class FtAggregateApply(FtAggregateClause):
219
222
 
220
223
  Args:
221
224
  expression (TEncodable): The expression to be transformed.
222
- name (TEncodable): The new property name to store the result of apply. This name can be referenced by further APPLY/SORTBY/GROUPBY/REDUCE operations down the pipeline.
225
+ name (TEncodable): The new property name to store the result of apply. This name can be referenced by further
226
+ APPLY/SORTBY/GROUPBY/REDUCE operations down the pipeline.
223
227
  """
224
228
  self.expression = expression
225
229
  self.name = name
@@ -259,8 +263,11 @@ class FtAggregateOptions:
259
263
  loadAll (Optional[bool]): An option to load all fields declared in the index.
260
264
  loadFields (Optional[List[TEncodable]]): An option to load only the fields passed in this list.
261
265
  timeout (Optional[int]): Overrides the timeout parameter of the module.
262
- params (Optional[Mapping[TEncodable, TEncodable]]): The key/value pairs can be referenced from within the query expression.
263
- clauses (Optional[List[FtAggregateClause]]): FILTER, LIMIT, GROUPBY, SORTBY and APPLY clauses, that can be repeated multiple times in any order and be freely intermixed. They are applied in the order specified, with the output of one clause feeding the input of the next clause.
266
+ params (Optional[Mapping[TEncodable, TEncodable]]): The key/value pairs can be referenced from within the
267
+ query expression.
268
+ clauses (Optional[List[FtAggregateClause]]): FILTER, LIMIT, GROUPBY, SORTBY and APPLY clauses, that can be
269
+ repeated multiple times in any order and be freely intermixed. They are applied in the order specified, with
270
+ the output of one clause feeding the input of the next clause.
264
271
  """
265
272
  self.loadAll = loadAll
266
273
  self.loadFields = loadFields
@@ -159,8 +159,10 @@ class TagField(Field):
159
159
  Args:
160
160
  name (TEncodable): The name of the tag field.
161
161
  alias (Optional[TEncodable]): An alias for the field.
162
- separator (Optional[TEncodable]): Specify how text in the attribute is split into individual tags. Must be a single character.
163
- case_sensitive (bool): Preserve the original letter cases of tags. If set to False, characters are converted to lowercase by default.
162
+ separator (Optional[TEncodable]): Specify how text in the attribute is split into individual tags. Must be a
163
+ single character.
164
+ case_sensitive (bool): Preserve the original letter cases of tags. If set to False, characters are converted to
165
+ lowercase by default.
164
166
  """
165
167
  super().__init__(name, FieldType.TAG, alias)
166
168
  self.separator = separator
@@ -209,7 +211,8 @@ class VectorFieldAttributes(ABC):
209
211
 
210
212
  Args:
211
213
  dimensions (int): Number of dimensions in the vector. Equivalent to `DIM` on the module API.
212
- distance_metric (DistanceMetricType): The distance metric used in vector type field. Can be one of `[L2 | IP | COSINE]`. Equivalent to `DISTANCE_METRIC` on the module API.
214
+ distance_metric (DistanceMetricType): The distance metric used in vector type field. Can be one of
215
+ `[L2 | IP | COSINE]`. Equivalent to `DISTANCE_METRIC` on the module API.
213
216
  type (VectorType): Vector type. The only supported type is `FLOAT32`. Equivalent to `TYPE` on the module API.
214
217
  """
215
218
  self.dimensions = dimensions
@@ -251,9 +254,11 @@ class VectorFieldAttributesFlat(VectorFieldAttributes):
251
254
 
252
255
  Args:
253
256
  dimensions (int): Number of dimensions in the vector. Equivalent to `DIM` on the module API.
254
- distance_metric (DistanceMetricType): The distance metric used in vector type field. Can be one of `[L2 | IP | COSINE]`. Equivalent to `DISTANCE_METRIC` on the module API.
257
+ distance_metric (DistanceMetricType): The distance metric used in vector type field. Can be one of
258
+ `[L2 | IP | COSINE]`. Equivalent to `DISTANCE_METRIC` on the module API.
255
259
  type (VectorType): Vector type. The only supported type is `FLOAT32`. Equivalent to `TYPE` on the module API.
256
- initial_cap (Optional[int]): Initial vector capacity in the index affecting memory allocation size of the index. Defaults to `1024`. Equivalent to `INITIAL_CAP` on the module API.
260
+ initial_cap (Optional[int]): Initial vector capacity in the index affecting memory allocation size of the index.
261
+ Defaults to `1024`. Equivalent to `INITIAL_CAP` on the module API.
257
262
  """
258
263
  super().__init__(dimensions, distance_metric, type)
259
264
  self.initial_cap = initial_cap
@@ -285,12 +290,18 @@ class VectorFieldAttributesHnsw(VectorFieldAttributes):
285
290
 
286
291
  Args:
287
292
  dimensions (int): Number of dimensions in the vector. Equivalent to `DIM` on the module API.
288
- distance_metric (DistanceMetricType): The distance metric used in vector type field. Can be one of `[L2 | IP | COSINE]`. Equivalent to `DISTANCE_METRIC` on the module API.
293
+ distance_metric (DistanceMetricType): The distance metric used in vector type field. Can be one of
294
+ `[L2 | IP | COSINE]`. Equivalent to `DISTANCE_METRIC` on the module API.
289
295
  type (VectorType): Vector type. The only supported type is `FLOAT32`. Equivalent to `TYPE` on the module API.
290
- initial_cap (Optional[int]): Initial vector capacity in the index affecting memory allocation size of the index. Defaults to `1024`. Equivalent to `INITIAL_CAP` on the module API.
291
- number_of_edges (Optional[int]): Number of maximum allowed outgoing edges for each node in the graph in each layer. Default is `16`, maximum is `512`. Equivalent to `M` on the module API.
292
- vectors_examined_on_construction (Optional[int]): Controls the number of vectors examined during index construction. Default value is `200`, Maximum value is `4096`. Equivalent to `EF_CONSTRUCTION` on the module API.
293
- vectors_examined_on_runtime (Optional[int]): Controls the number of vectors examined during query operations. Default value is `10`, Maximum value is `4096`. Equivalent to `EF_RUNTIME` on the module API.
296
+ initial_cap (Optional[int]): Initial vector capacity in the index affecting memory allocation size of the index.
297
+ Defaults to `1024`. Equivalent to `INITIAL_CAP` on the module API.
298
+ number_of_edges (Optional[int]): Number of maximum allowed outgoing edges for each node in the graph in each layer.
299
+ Default is `16`, maximum is `512`. Equivalent to `M` on the module API.
300
+ vectors_examined_on_construction (Optional[int]): Controls the number of vectors examined during index
301
+ construction. Default value is `200`, Maximum value is `4096`. Equivalent to `EF_CONSTRUCTION` on the
302
+ module API.
303
+ vectors_examined_on_runtime (Optional[int]): Controls the number of vectors examined during query operations.
304
+ Default value is `10`, Maximum value is `4096`. Equivalent to `EF_RUNTIME` on the module API.
294
305
  """
295
306
  super().__init__(dimensions, distance_metric, type)
296
307
  self.initial_cap = initial_cap
@@ -337,7 +348,8 @@ class VectorField(Field):
337
348
  name (TEncodable): The name of the vector field.
338
349
  algorithm (VectorAlgorithm): The vector indexing algorithm.
339
350
  alias (Optional[TEncodable]): An alias for the field.
340
- attributes (VectorFieldAttributes): Additional attributes to be passed with the vector field after the algorithm name.
351
+ attributes (VectorFieldAttributes): Additional attributes to be passed with the vector field after the
352
+ algorithm name.
341
353
  """
342
354
  super().__init__(name, FieldType.VECTOR, alias)
343
355
  self.algorithm = algorithm
@@ -45,9 +45,11 @@ class FtProfileOptions:
45
45
  Initialize a new FtProfileOptions instance.
46
46
 
47
47
  Args:
48
- query (TEncodable): The query that is being profiled. This is the query argument from the FT.AGGREGATE/FT.SEARCH command.
48
+ query (TEncodable): The query that is being profiled. This is the query argument from the
49
+ FT.AGGREGATE/FT.SEARCH command.
49
50
  query_type (Optional[QueryType]): The type of query to be profiled.
50
- query_options (Optional[Union[FtSearchOptions, FtAggregateOptions]]): The arguments/options for the FT.AGGREGATE/FT.SEARCH command being profiled.
51
+ query_options (Optional[Union[FtSearchOptions, FtAggregateOptions]]): The arguments/options for the
52
+ FT.AGGREGATE/FT.SEARCH command being profiled.
51
53
  limited (Optional[bool]): To provide some brief version of the output, otherwise a full verbose output is provided.
52
54
  """
53
55
  self.query = query
@@ -66,12 +68,14 @@ class FtProfileOptions:
66
68
  A class method to create FtProfileOptions with FT.SEARCH/FT.AGGREGATE options.
67
69
 
68
70
  Args:
69
- query (TEncodable): The query that is being profiled. This is the query argument from the FT.AGGREGATE/FT.SEARCH command.
70
- query_options (Optional[Union[FtSearchOptions, FtAggregateOptions]]): The arguments/options for the FT.AGGREGATE/FT.SEARCH command being profiled.
71
+ query (TEncodable): The query that is being profiled. This is the query argument from the
72
+ FT.AGGREGATE/FT.SEARCH command.
73
+ query_options (Optional[Union[FtSearchOptions, FtAggregateOptions]]): The arguments/options for the
74
+ FT.AGGREGATE/FT.SEARCH command being profiled.
71
75
  limited (Optional[bool]): To provide some brief version of the output, otherwise a full verbose output is provided.
72
76
  """
73
77
  query_type: QueryType = QueryType.SEARCH
74
- if type(query_options) == FtAggregateOptions:
78
+ if isinstance(query_options, FtAggregateOptions):
75
79
  query_type = QueryType.AGGREGATE
76
80
  return cls(query, query_type, query_options, limited)
77
81
 
@@ -83,7 +87,8 @@ class FtProfileOptions:
83
87
  A class method to create FtProfileOptions with QueryType.
84
88
 
85
89
  Args:
86
- query (TEncodable): The query that is being profiled. This is the query argument from the FT.AGGREGATE/FT.SEARCH command.
90
+ query (TEncodable): The query that is being profiled. This is the query argument from the
91
+ FT.AGGREGATE/FT.SEARCH command.
87
92
  query_type (QueryType): The type of query to be profiled.
88
93
  limited (Optional[bool]): To provide some brief version of the output, otherwise a full verbose output is provided.
89
94
  """
@@ -101,7 +106,7 @@ class FtProfileOptions:
101
106
  args.append(FtProfileKeywords.LIMITED)
102
107
  args.extend([FtProfileKeywords.QUERY, self.query])
103
108
  if self.query_options:
104
- if type(self.query_options) == FtAggregateOptions:
109
+ if isinstance(self.query_options, FtAggregateOptions):
105
110
  args.extend(cast(FtAggregateOptions, self.query_options).to_args())
106
111
  else:
107
112
  args.extend(cast(FtSearchOptions, self.query_options).to_args())
@@ -49,7 +49,8 @@ class ReturnField:
49
49
  Initialize a new ReturnField instance.
50
50
 
51
51
  Args:
52
- field_identifier (TEncodable): The identifier for the field of the key that has to returned as a result of FT.SEARCH command.
52
+ field_identifier (TEncodable): The identifier for the field of the key that has to returned as a result of
53
+ FT.SEARCH command.
53
54
  alias (Optional[TEncodable]): The alias to override the name of the field in the FT.SEARCH result.
54
55
  """
55
56
  self.field_identifier = field_identifier
@@ -87,11 +88,16 @@ class FtSearchOptions:
87
88
  Initialize the FT.SEARCH optional fields.
88
89
 
89
90
  Args:
90
- return_fields (Optional[List[ReturnField]]): The fields of a key that are returned by FT.SEARCH command. See `ReturnField`.
91
- timeout (Optional[int]): This value overrides the timeout parameter of the module. The unit for the timout is in milliseconds.
92
- params (Optional[Mapping[TEncodable, TEncodable]]): Param key/value pairs that can be referenced from within the query expression.
93
- limit (Optional[FtSearchLimit]): This option provides pagination capability. Only the keys that satisfy the offset and count values are returned. See `FtSearchLimit`.
94
- count (Optional[bool]): This flag option suppresses returning the contents of keys. Only the number of keys is returned.
91
+ return_fields (Optional[List[ReturnField]]): The fields of a key that are returned by FT.SEARCH command.
92
+ See `ReturnField`.
93
+ timeout (Optional[int]): This value overrides the timeout parameter of the module.
94
+ The unit for the timout is in milliseconds.
95
+ params (Optional[Mapping[TEncodable, TEncodable]]): Param key/value pairs that can be referenced from within the
96
+ query expression.
97
+ limit (Optional[FtSearchLimit]): This option provides pagination capability. Only the keys that satisfy the offset
98
+ and count values are returned. See `FtSearchLimit`.
99
+ count (Optional[bool]): This flag option suppresses returning the contents of keys.
100
+ Only the number of keys is returned.
95
101
  """
96
102
  self.return_fields = return_fields
97
103
  self.timeout = timeout