diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-02-06 14:24:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-06 14:24:07 +0200 |
commit | 30be3a35b18c0041e96e6a1b17fa6b323253d2b2 (patch) | |
tree | a555ed51d83bedc4da733cadfecf801b6e29507a /docs/examples | |
parent | ba3134cd6bbd9093028badfb3f37f214b6668055 (diff) | |
download | redis-py-30be3a35b18c0041e96e6a1b17fa6b323253d2b2.tar.gz |
Add type hints for JSON commands (#1921)
* add type hints for json commands
* Change json.clear test multi to be up to date with redisjson (#1922)
* fix json clear test
* fix json clear test
* Add support for BZMPOP (#1851)
* add bzmpop
* add comment
* fix pr comment
* fix linters
* fix pr comments
* add client no-evict (#1856)
* Add support for ZINTERCARD (#1857)
* add zintercard
* fix pr comment
* linters
* Add support for EVAL_RO (#1862)
* add sort_ro
* mark test as onlynon cluster
* delete mark test as onlynoncluster
* add eval_ro
* fix linters
* delete sort_ro
* fix pr comment
* add type hints
* add type hints
* linters
* Add support for EVALSHA_RO (#1863)
* add evalsha-ro
* fix pr comment
* add type hints
* add type hints
* Fix naming conventions (#1872)
* fix naming convention
* fix worng changes
* fix naming convention in rootPath
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/search_json_examples.ipynb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/search_json_examples.ipynb b/docs/examples/search_json_examples.ipynb index 6673663..b66e336 100644 --- a/docs/examples/search_json_examples.ipynb +++ b/docs/examples/search_json_examples.ipynb @@ -59,9 +59,9 @@ " \"city\": \"Tel Aviv\"\n", " }\n", "}\n", - "r.json().set(\"user:1\", Path.rootPath(), user1)\n", - "r.json().set(\"user:2\", Path.rootPath(), user2)\n", - "r.json().set(\"user:3\", Path.rootPath(), user3)\n", + "r.json().set(\"user:1\", Path.root_path(), user1)\n", + "r.json().set(\"user:2\", Path.root_path(), user2)\n", + "r.json().set(\"user:3\", Path.root_path(), user3)\n", "\n", "schema = (TextField(\"$.user.name\", as_name=\"name\"),TagField(\"$.user.city\", as_name=\"city\"), NumericField(\"$.user.age\", as_name=\"age\"))\n", "r.ft().create_index(schema, definition=IndexDefinition(prefix=[\"user:\"], index_type=IndexType.JSON))" |