Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/examples/asyncio_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
"metadata": {},
"source": [
"## Connecting to Valkey instances by specifying a URL scheme.\n",
"Parameters are passed to the following schems, as parameters to the url scheme.\n",
"Parameters are passed to the following schemes, as parameters to the url scheme.\n",
"\n",
"Three URL schemes are supported:\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/connection_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
"metadata": {},
"source": [
"## Connecting to Valkey instances by specifying a URL scheme.\n",
"Parameters are passed to the following schems, as parameters to the url scheme.\n",
"Parameters are passed to the following schemes, as parameters to the url scheme.\n",
"\n",
"Three URL schemes are supported:\n",
"\n",
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/pipeline_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The responses of the three commands are stored in a list. In the above example, the two first boolean indicates that the `set` commands were successful and the last element of the list is the result of the `get(\"a\")` comand."
"The responses of the three commands are stored in a list. In the above example, the two first boolean indicates that the `set` commands were successful and the last element of the list is the result of the `get(\"a\")` command."
]
},
{
Expand All @@ -132,7 +132,7 @@
"source": [
"## Chained call\n",
"\n",
"The same result as above can be obtained in one line of code by chaining the opperations."
"The same result as above can be obtained in one line of code by chaining the operations."
]
},
{
Expand Down Expand Up @@ -162,7 +162,7 @@
"source": [
"## Performance comparison\n",
"\n",
"Using pipelines can improve performance, for more informations, see [Valkey documentation about pipelining](https://valkey.io/docs/manual/pipelining/). Here is a simple comparison test of performance between basic and pipelined commands (we simply increment a value and measure the time taken by both method)."
"Using pipelines can improve performance, for more information, see [Valkey documentation about pipelining](https://valkey.io/docs/manual/pipelining/). Here is a simple comparison test of performance between basic and pipelined commands (we simply increment a value and measure the time taken by both method)."
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/set_and_get_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
}
],
"source": [
"r.set(\"full_name\", \"overridee!\")"
"r.set(\"full_name\", \"override!\")"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/timeseries_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
"source": [
"### Get the last sample matching specific label\n",
"\n",
"Get the last sample that matches \"label1=1\", see [Valkey documentation](https://valkey.io/commands/ts.mget/) to see the posible filter values."
"Get the last sample that matches \"label1=1\", see [Valkey documentation](https://valkey.io/commands/ts.mget/) to see the possible filter values."
]
},
{
Expand Down Expand Up @@ -521,7 +521,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"For more informations about duplicate policies, see [Valkey documentation](https://valkey.io/commands/ts.add/)."
"For more information about duplicate policies, see [Valkey documentation](https://valkey.io/commands/ts.add/)."
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions tests/test_asyncio/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ async def test_example(decoded_r: valkey.Valkey):
"doc1",
mapping={
"title": "RediSearch",
"body": "RediSearch impements a search engine on top of valkey",
"body": "RediSearch implements a search engine on top of valkey",
},
)

Expand Down Expand Up @@ -1121,7 +1121,7 @@ async def test_aggregations_groupby(decoded_r: valkey.Valkey):
"search",
mapping={
"title": "RediSearch",
"body": "RediSearch impements a search engine on top of valkey",
"body": "RediSearch implements a search engine on top of valkey",
"parent": "valkey",
"random_num": 10,
},
Expand Down
4 changes: 2 additions & 2 deletions tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def test_example(client):
"doc1",
mapping={
"title": "RediSearch",
"body": "RediSearch impements a search engine on top of valkey",
"body": "RediSearch implements a search engine on top of valkey",
},
)

Expand Down Expand Up @@ -1026,7 +1026,7 @@ def test_aggregations_groupby(client):
"search",
mapping={
"title": "RediSearch",
"body": "RediSearch impements a search engine on top of valkey",
"body": "RediSearch implements a search engine on top of valkey",
"parent": "valkey",
"random_num": 10,
},
Expand Down
8 changes: 4 additions & 4 deletions valkey/_parsers/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_keys(self, valkey_conn, *args):
cmd_name_split = cmd_name.split()
cmd_name = cmd_name_split[0]
if cmd_name in self.commands:
# save the splitted command to args
# save the split command to args
args = cmd_name_split + list(args[1:])
else:
# We'll try to reinitialize the commands cache, if the engine
Expand Down Expand Up @@ -153,8 +153,8 @@ def _get_moveable_keys(self, valkey_conn, *args):

So, don't use this function with EVAL or EVALSHA.
"""
# The command name should be splitted into separate arguments,
# e.g. 'MEMORY USAGE' will be splitted into ['MEMORY', 'USAGE']
# The command name should be split into separate arguments,
# e.g. 'MEMORY USAGE' will be split into ['MEMORY', 'USAGE']
pieces = args[0].split() + list(args[1:])
try:
keys = valkey_conn.execute_command("COMMAND GETKEYS", *pieces)
Expand Down Expand Up @@ -223,7 +223,7 @@ async def get_keys(self, *args: Any) -> Optional[Tuple[str, ...]]:
cmd_name_split = cmd_name.split()
cmd_name = cmd_name_split[0]
if cmd_name in self.commands:
# save the splitted command to args
# save the split command to args
args = cmd_name_split + list(args[1:])
else:
# We'll try to reinitialize the commands cache, if the engine
Expand Down
2 changes: 1 addition & 1 deletion valkey/_parsers/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def parse_geosearch_generic(response, **options):
"""
try:
if options["store"] or options["store_dist"]:
# `store` and `store_dist` cant be combined
# `store` and `store_dist` can't be combined
# with other command arguments.
# relevant to 'GEORADIUS' and 'GEORADIUSBYMEMBER'
return response
Expand Down
10 changes: 5 additions & 5 deletions valkey/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ def client_setname(self, name: str, **kwargs) -> ResponseT:
def client_setinfo(self, attr: str, value: str, **kwargs) -> ResponseT:
"""
Sets the current connection library name or version
For mor information see https://valkey.io/commands/client-setinfo
For more information see https://valkey.io/commands/client-setinfo
"""
return self.execute_command("CLIENT SETINFO", attr, value, **kwargs)

Expand Down Expand Up @@ -5651,7 +5651,7 @@ def _georadiusgeneric(
raise DataError("GEORADIUS invalid sort")

if kwargs["store"] and kwargs["store_dist"]:
raise DataError("GEORADIUS store and store_dist cant be set together")
raise DataError("GEORADIUS store and store_dist can't be set together")

if kwargs["store"]:
pieces.extend([b"STORE", kwargs["store"]])
Expand Down Expand Up @@ -5801,7 +5801,7 @@ def _geosearchgeneric(
if kwargs["member"]:
if kwargs["longitude"] or kwargs["latitude"]:
raise DataError(
"GEOSEARCH member and longitude or latitude cant be set together"
"GEOSEARCH member and longitude or latitude can't be set together"
)
pieces.extend([b"FROMMEMBER", kwargs["member"]])
if kwargs["longitude"] is not None and kwargs["latitude"] is not None:
Expand All @@ -5818,7 +5818,7 @@ def _geosearchgeneric(
if kwargs["radius"]:
if kwargs["width"] or kwargs["height"]:
raise DataError(
"GEOSEARCH radius and width or height cant be set together"
"GEOSEARCH radius and width or height can't be set together"
)
pieces.extend([b"BYRADIUS", kwargs["radius"], kwargs["unit"]])
if kwargs["width"] and kwargs["height"]:
Expand Down Expand Up @@ -6061,7 +6061,7 @@ def function_list(
) -> Union[Awaitable[List], List]:
"""
Return information about the functions and libraries.
:param library: pecify a pattern for matching library names
:param library: specify a pattern for matching library names
:param withcode: cause the server to include the libraries source
implementation in the reply
"""
Expand Down
2 changes: 1 addition & 1 deletion valkey/commands/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def random_string(length=10):
def quote_string(v):
"""
RedisGraph strings must be quoted,
quote_string wraps given v with quotes incase
quote_string wraps given v with quotes in case
v is a string.
"""

Expand Down