Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DX-1660: add EVAL_RO and EVALSHA_RO commands #1365

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yunusemreozdemir
Copy link
Contributor

No description provided.

Copy link

linear bot commented Mar 21, 2025

createScript(script: string): Script {
return new Script(this, script);
createScript(script: string): Script;
createScript(script: string, opts: ScriptOptions & { readOnly: true }): ScriptRO;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ScriptOptions is already

ScriptOptions = {
  readOnly?: boolean;
};

until we add new options, i think we don't need it here, it duplicates rn

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are saying we should remove ScriptOptions here right? Because { readOnly: true } helps with the type safety.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants