Skip to content

Add set operations: SINTER / SUNION / SDIFF / SPOP / SRANDMEMBER #9

Closed

Description

@Rohit-Dnath

Summary

Add set operation commands: SINTER, SUNION, SDIFF, SPOP, and SRANDMEMBER.

Why

RAMen has the basic set commands (SADD, SREM, SMEMBERS, SISMEMBER, SCARD) but none of the multi-set operations or random/pop helpers, which are core to using sets as a real data type.

Where

  • Handlers: internal/server/cmd_set.go
  • Register in internal/server/commands.go (the sets block)
  • Storage: internal/store/set.go

Acceptance criteria

  • Multi-key operations handle missing keys as empty sets
  • SPOP and SRANDMEMBER support the optional count argument
  • Tests added covering multi-set edge cases
  • Documented in docs/commands.md

Activity

  1. tchalikanti1705 commented on Jul 13, 2026

    @tchalikanti1705
    Contributor

    @Rohit-Dnath I'd like to take this one and add SINTER, SUNION, SDIFF, SPOP and SRANDMEMBER. Can you assign it to me?

  2. Rohit-Dnath commented on Jul 14, 2026

    @Rohit-Dnath
    OwnerAuthor

    assigned @tchalikanti1705

    :)

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

Metadata

Metadata

Labels

enhancementNew feature or requestredis-compatRedis command/protocol compatibility

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions