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

Doc 2841 code samples for bitfield C# #281

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

andy-stark-redis
Copy link
Collaborator

The C# client seems to work a bit differently to the Python client for these commands. Hopefully, I've translated it over from Python correctly.

@andy-stark-redis andy-stark-redis added the documentation Improvements or additions to documentation label Apr 15, 2024
@andy-stark-redis andy-stark-redis linked an issue Apr 15, 2024 that may be closed by this pull request
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.35%. Comparing base (26ff438) to head (9c9a73d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #281   +/-   ##
=======================================
  Coverage   94.35%   94.35%           
=======================================
  Files          88       88           
  Lines        5425     5425           
  Branches      496      496           
=======================================
  Hits         5119     5119           
  Misses        180      180           
  Partials      126      126           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andy-stark-redis
Copy link
Collaborator Author

Closes #209



// STEP_START bf
long res1 = db.StringIncrement("bike:1:stats", 1000);
Copy link
Contributor

Choose a reason for hiding this comment

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

This does not match exactly the Python snippet at https://redis.io/docs/latest/develop/data-types/bitfields/

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

Successfully merging this pull request may close these issues.

Create C# code snippets for bitfields
2 participants