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

added cache read mode to redis client options #81

Conversation

Seadoo2017
Copy link
Contributor

reverted default read mode back to none from replica as the change breaks code relying on read value existing immediately after writing (RedisQueue for example)

reverted default read mode back to none from replica as the change breaks code relying on read value existing immediately after writing (RedisQueue for example)
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Itai seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

/// <summary>
/// The behaviour required when performing read operations from cache
/// </summary>
public CommandFlags ReadMode { get; set; } = CommandFlags.None;
Copy link
Member

Choose a reason for hiding this comment

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

Might want to include a comment on when you would prefer replica vs primary. I'd think you'd still want to prefer replica by default no? @ejsmith

Also seeing the latest redis client release, wonder if this fixes some of the issues you saw.. https://stackexchange.github.io/StackExchange.Redis/ReleaseNotes

Fix #2593: EXPIRETIME and PEXPIRETIME miscategorized as PrimaryOnly commands causing them to fail when issued against a read-only replica (#2593 by slorello89)

On a side note, can you please sign the CLA.

Copy link
Contributor

Choose a reason for hiding this comment

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

No, I think you should opt into reading potentially stale data. Really you'd want to make that decision on a case by case basis.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@niemyjski I signed the CLA but it still shows that the check fails. maybe I messed something up?
I think I didn't set author when I pushed the commit so maybe it used different user which I use for my other git server? (I imagined using my github key is enough for it to be linked to this account? should I try and create new commit and PR or maybe I'm missing something simpler?)
Thanks.

Copy link
Contributor

@ejsmith ejsmith left a comment

Choose a reason for hiding this comment

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

Looks good

@Seadoo2017 Seadoo2017 closed this Dec 17, 2023
@Seadoo2017 Seadoo2017 deleted the feature/added_cache_read_mode_option branch December 17, 2023 10:54
@niemyjski
Copy link
Member

Fixed via #82 (comment)

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.

5 participants