镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Create C# code snippets for bitfields #2607

Closed

Description

@sav-norem

The redis.io webpage for bitfields needs the C# example as well. The python equivalent can be used to copy the setup and can be found here

The first line of the file needs to be the ID for the example - # EXAMPLE: bitfield_tutorial

Each separate section is delimited with a tag that you will need to copy exactly for it to appear in the correct place, ie.

# STEP_START bf
{code}                                    
# STEP_END

# HIDE_START, # HIDE_END, # REMOVE_START, and # REMOVE_END can be used for debugging and deleting keys. Hide will hide until a user expands the example, remove will only be seen in the source code and will never appear on the webpage.

@dwdougherty and I will be reviewing and tracking these issues - feel free to tag us with any questions

Activity

  1. mgravell commented on Nov 27, 2023

    @mgravell
    Collaborator

    Hmmm; somehow I think we've not added direct BITFIELD support yet, despite that being a 3.2 thing - we should fix thatz and I'm happy to repurpose this to do that. However, updating redis.io seems like a different repo, i.e. we literally can't do that from here

  2. sav-norem commented on Nov 27, 2023

    @sav-norem
    Author

    @mgravell I can tag @uglide to explain how it all works, but I thought this was the appropriate repo since it works just fine from the NRedisStack - redis/NRedisStack#197 - here's one that Steve did to add in a different data type. Is NRedisStack the correct repo instead of this one?

  3. sav-norem commented on Nov 27, 2023

    @sav-norem
    Author

    actually that probably means that NRedisStack is the only place it will work from - I'll move these over there.

  4. mgravell commented on Nov 27, 2023

    @mgravell
    Collaborator

    We should still add direct support - it is more efficient and obvious that having to use an extension.

  5. slorello89 commented on Nov 27, 2023

    @slorello89
    Collaborator

    FYI @mgravell #2107 (never did get around to figuring out the API design)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions