Skip to content

Commit 3ee5ce1

Browse files
authored
fix: rename evalRo and evalshaRo commands
fix: rename evalRo and evalshaRo commands
2 parents 026c634 + 6b2a11a commit 3ee5ce1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

redis/sdks/ts/commands/scripts/eval_ro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ description: Evaluate a read-only Lua script server side.
2828
const script = `
2929
return ARGV[1]
3030
`
31-
const result = await redis.eval_ro(script, [], ["hello"]);
31+
const result = await redis.evalRo(script, [], ["hello"]);
3232
console.log(result) // "hello"
3333

3434
```

redis/sdks/ts/commands/scripts/evalsha_ro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ description: Evaluate a cached read-only Lua script server side.
2828
<RequestExample>
2929
```ts Example
3030

31-
const result = await redis.evalsha_ro("fb67a0c03b48ddbf8b4c9b011e779563bdbc28cb", [], ["hello"]);
31+
const result = await redis.evalshaRo("fb67a0c03b48ddbf8b4c9b011e779563bdbc28cb", [], ["hello"]);
3232
console.log(result) // "hello"
3333

3434
```

0 commit comments

Comments
 (0)