Skip to content

Commit d0bf623

Browse files
committed
Merge branch 'main' into DOC-4137
2 parents 7ef44a2 + fe3950f commit d0bf623

File tree

228 files changed

+39270
-1439
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+39270
-1439
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,5 +159,14 @@ jobs:
159159
done
160160
fi
161161
162+
if [[ "$bucket_path" == staging/* ]]
163+
then
164+
versioned_builds=($(find . -type d -regex ".*[0-9-]" -maxdepth 1 | sed -E 's/^.\///'))
165+
for versioned_build in "${versioned_builds[@]}"; do
166+
product=$(grep -Eo '[a-zA-Z]+' <<< $versioned_build)
167+
gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}" "gs://${BUCKET}/${bucket_path}/${versioned_build}/operate/${product}"
168+
done
169+
fi
170+
162171
- name: End
163172
run: echo "This job's status is ${{ job.status }}."

build/components/component.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import logging
22
import glob
33
import os
4+
import shutil
5+
46
import semver
57
import uuid
68
from typing import Tuple
@@ -514,13 +516,20 @@ def _copy_examples(self):
514516
if not example_id:
515517
continue
516518

517-
example_metadata = {'source': f}
519+
example_metadata = {
520+
'source': f,
521+
'language': self.get('language').lower()
522+
}
523+
524+
base_path = os.path.join(dst, example_id)
525+
mkdir_p(base_path)
526+
rsync(example_metadata['source'], base_path)
518527

519-
mkdir_p(f'{dst}/{example_id}')
520-
rsync(example_metadata['source'], f'{dst}/{example_id}/')
528+
target_path = os.path.join(base_path, f'{self.get("id")}_{os.path.basename(f)}')
529+
shutil.move(os.path.join(base_path, os.path.basename(f)), target_path)
521530

522-
example_metadata['target'] = f'{dst}/{example_id}/{os.path.basename(f)}'
523-
e = Example(self.get('language'), example_metadata['target'])
531+
example_metadata['target'] = target_path
532+
e = Example(self.get('language'), target_path)
524533
example_metadata['highlight'] = e.highlight
525534
example_metadata['hidden'] = e.hidden
526535
example_metadata['named_steps'] = e.named_steps
@@ -532,7 +541,7 @@ def _copy_examples(self):
532541
examples[example_id] = {}
533542

534543
logging.info(f'Example {example_id} processed successfully.')
535-
examples[example_id][self.get('language')] = example_metadata
544+
examples[example_id][self.get('label')] = example_metadata
536545

537546
def apply(self) -> None:
538547
logging.info(f'Applying client {self._id}')

config.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tagManagerId = "GTM-TKZ6J9R"
4545
gitHubRepo = "https://github.com/redis/docs"
4646

4747
# Display and sort order for client examples
48-
clientsExamples = ["Python", "Node.js", "Java", "Go", "C#", "RedisVL"]
48+
clientsExamples = ["Python", "Node.js", "Java Sync", "Java Async", "Java Reactive", "Go", "C#", "RedisVL"]
4949
searchService = "/convai/api/search-service"
5050
ratingsService = "/docusight/api/rate"
5151

@@ -57,12 +57,14 @@ rdi_db_types = "cassandra|mysql|oracle|postgresql|sqlserver"
5757
rdi_cli_latest = "latest"
5858

5959
[params.clientsConfig]
60-
"Python"={lang="python", quickstartSlug="python/redis-py"}
61-
"Node.js"={lang="javascript", quickstartSlug="nodejs"}
62-
"Java"={lang="java", quickstartSlug="java/jedis"}
63-
"Go"={lang="go", quickstartSlug="go"}
64-
"C#"={lang="C#", quickstartSlug="dotnet"}
65-
"RedisVL"={lang="python", quickstartSlug="python/redis-vl"}
60+
"Python"={quickstartSlug="redis-py"}
61+
"Node.js"={quickstartSlug="nodejs"}
62+
"Java sync"={quickstartSlug="jedis"}
63+
"Java async"={quickstartSlug="lettuce"}
64+
"Java reactive"={quickstartSlug="lettuce"}
65+
"Go"={quickstartSlug="go"}
66+
"C#"={quickstartSlug="dotnet"}
67+
"RedisVL"={quickstartSlug="redis-vl"}
6668

6769
# Markup
6870
[markup]

content/commands/client-kill/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ arguments:
7474
optional: true
7575
token: SKIPME
7676
type: oneof
77+
- display_text: maxage
78+
name: maxage
79+
optional: true
80+
since: 7.4.0
81+
token: MAXAGE
82+
type: integer
7783
multiple: true
7884
name: new-format
7985
type: oneof
@@ -110,6 +116,8 @@ history:
110116
- Replaced `slave` `TYPE` with `replica`. `slave` still supported for backward compatibility.
111117
- - 6.2.0
112118
- '`LADDR` option.'
119+
- - 7.4.0
120+
- '`MAXAGE` option.'
113121
linkTitle: CLIENT KILL
114122
since: 2.4.0
115123
summary: Terminates open connections.

content/commands/cluster-failover/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ in order to perform a data center switch, while all the masters are down
8282
or partitioned away.
8383

8484
The **TAKEOVER** option implies everything **FORCE** implies, but also does
85-
not uses any cluster authorization in order to failover. A replica receiving
85+
not use any cluster authorization in order to failover. A replica receiving
8686
`CLUSTER FAILOVER TAKEOVER` will instead:
8787

8888
1. Generate a new `configEpoch` unilaterally, just taking the current greatest epoch available and incrementing it if its local configuration epoch is not already the greatest.

content/commands/failover/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ If this value is not specified, the timeout can be considered to be "infinite".
8787

8888
* `TO` *HOST* *PORT* -- This option allows designating a specific replica, by its host and port, to failover to. The master will wait specifically for this replica to catch up to its replication offset, and then failover to it.
8989

90-
* `FORCE` -- If both the `TIMEOUT` and `TO` options are set, the force flag can also be used to designate that that once the timeout has elapsed, the master should failover to the target replica instead of rolling back.
90+
* `FORCE` -- If both the `TIMEOUT` and `TO` options are set, the force flag can also be used to designate that once the timeout has elapsed, the master should failover to the target replica instead of rolling back.
9191
This can be used for a best-effort attempt at a failover without data loss, but limiting write outage.
9292

9393
NOTE: The master will always rollback if the `PSYNC FAILOVER` request is rejected by the target replica.

content/commands/flushall/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ It is possible to use one of the following modifiers to dictate the flushing mod
6666

6767
* An asynchronous `FLUSHALL` command only deletes keys that were present at the time the command was invoked. Keys created during an asynchronous flush will be unaffected.
6868
* This command does not delete functions.
69+
* Other than emptying all databases (similar to `FLUSHDB`), this command clears the RDB persistence file, aborts any snapshot that is in progress, and, if the `save` config is enabled, saves an empty RDB file.
6970

7071
## Behavior change history
7172

content/commands/flushdb/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ It is possible to use one of the following modifiers to dictate the flushing mod
6666

6767
* An asynchronous `FLUSHDB` command only deletes keys that were present at the time the command was invoked. Keys created during an asynchronous flush will be unaffected.
6868
* This command does not delete functions.
69+
* When using Redis Cluster, this command is identical to `FLUSHALL` since a Redis Cluster supports only one database with an ID of zero.
6970

7071
## Behavior change history
7172

content/commands/ft.search/index.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ since: 1.0.0
275275
stack_path: docs/interact/search-and-query
276276
summary: Searches the index with a textual query, returning either documents or just
277277
ids
278-
syntax: "FT.SEARCH index query \n [NOCONTENT] \n [VERBATIM] [NOSTOPWORDS] \n [WITHSCORES]\
278+
syntax: "FT.SEARCH index query \n [NOCONTENT] \n [VERBATIM] \n [NOSTOPWORDS] \n [WITHSCORES]\
279279
\ \n [WITHPAYLOADS] \n [WITHSORTKEYS] \n [FILTER numeric_field min max [ FILTER\
280280
\ numeric_field min max ...]] \n [GEOFILTER geo_field lon lat radius m | km | mi\
281281
\ | ft [ GEOFILTER geo_field lon lat radius m | km | mi | ft ...]] \n [INKEYS count\
@@ -344,6 +344,13 @@ returns the document ids and not the content. This is useful if RediSearch is on
344344
does not try to use stemming for query expansion but searches the query terms verbatim.
345345
</details>
346346

347+
<details open>
348+
<summary><code>NOSTOPWORDS</code></summary>
349+
350+
ignores any defined stop words in full text searches.
351+
</details>
352+
353+
347354
<details open>
348355
<summary><code>WITHSCORES</code></summary>
349356

content/commands/geodist/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ key_specs:
6767
linkTitle: GEODIST
6868
since: 3.2.0
6969
summary: Returns the distance between two members of a geospatial index.
70-
syntax_fmt: GEODIST key member1 member2 [m | km | ft | mi]
71-
syntax_str: member1 member2 [m | km | ft | mi]
70+
syntax_fmt: GEODIST key member1 member2 [M | KM | FT | MI]
71+
syntax_str: member1 member2 [M | KM | FT | MI]
7272
title: GEODIST
7373
---
7474
Return the distance between two members in the geospatial index represented by the sorted set.

0 commit comments

Comments
 (0)