Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
Signed-off-by: Shoham Elias <shohame@amazon.com>
  • Loading branch information
shohamazon committed Sep 12, 2024
1 parent d1b7c50 commit af8f6ec
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ CompletableFuture<Object> fcallReadOnly(
* @see <a href="https://valkey.io/commands/script-show">valkey.io</a> for details.
* @since Valkey 8.0.0 and above.
* @param sha1 The SHA1 digest of the script.
* @return The original source code of the script, if present in the cache.
* @throws RequestException if the script is not found in the cache.
* @return The original source code of the script, if present in the cache. If the script is not
* found in the cache, an error is thrown.
* @example
* <pre>{@code
* String scriptSource = client.scriptShow(luaScript.getHash()).get();
Expand All @@ -151,8 +151,8 @@ CompletableFuture<Object> fcallReadOnly(
* @see <a href="https://valkey.io/commands/script-show">valkey.io</a> for details.
* @since Valkey 8.0.0 and above.
* @param sha1 The SHA1 digest of the script.
* @return The original source code of the script, if present in the cache.
* @throws RequestException if the script is not found in the cache.
* @return The original source code of the script, if present in the cache. If the script is not
* found in the cache, an error is thrown.
* @example
* <pre>{@code
* String scriptSource = client.scriptShow(gs(luaScript.getHash())).get();
Expand Down
4 changes: 2 additions & 2 deletions java/client/src/test/java/glide/api/GlideClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ public void invokeScript_with_ScriptOptionsGlideString_returns_success() {
assertEquals(payload, response.get());
}

@Test
/*@Test
public void scriptShow_returns_script_source() {
// setup
String scriptSource = "return { KEYS[1], ARGV[1] }";
Expand All @@ -1600,7 +1600,7 @@ public void scriptShow_returns_script_source() {
// verify
assertEquals(testResponse, response);
assertEquals(scriptSource, response.get());
}
}*/

@SneakyThrows
@Test
Expand Down
6 changes: 3 additions & 3 deletions node/src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ import {
ConfigurationError,
ConnectionError,
ExecAbortError,
ValkeyError,
RequestError,
TimeoutError,
ValkeyError,
} from "./Errors";
import { GlideClientConfiguration } from "./GlideClient";
import {
Expand Down Expand Up @@ -3704,8 +3704,8 @@ export class BaseClient {
*
* @param sha1 - The SHA1 digest of the script.
* @param options - (Optional) See {@link DecoderOption}.
* @returns The original source code of the script, if present in the cache.
* @throws RequestError if the script is not found in the cache.
* @return The original source code of the script, if present in the cache.
* If the script is not found in the cache, an error is thrown.
*
* @example
* ```typescript
Expand Down
4 changes: 1 addition & 3 deletions python/python/glide/async_commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5404,9 +5404,7 @@ async def script_show(self, sha1: TEncodable) -> bytes:
Returns:
bytes: The original source code of the script, if present in the cache.
Raises:
RequestError: If the script is not found in the cache.
If the script is not found in the cache, an error is thrown.
Example:
>>> await client.script_show(script.get_hash())
Expand Down

0 comments on commit af8f6ec

Please sign in to comment.