Skip to content

DATAREDIS-562 - Add support for BITFIELD. #227

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

Closed
wants to merge 4 commits into from

Conversation

christophstrobl
Copy link
Member

We now offer support for BITFIELD via RedisConnection and RedisClusterConnection using Lettuce and Jedis.

connection.bitfield(key,
  newBitfieldCommand()
   .set(INT_8).valueAt(offset(0).multipliedByTypeLength()).to(100)
   .incr(signed(8)).valueAt(offset(102)).overflow(FAIL).by(1));

@christophstrobl
Copy link
Member Author

Maybe we should wait for Jedis 2.9.1 and Lettuce 4.2.3 to arrive before we merge that one.
Both drivers in their current version and Redis itself have their issues with BITFIELD.

mp911de pushed a commit that referenced this pull request May 2, 2018
mp911de added a commit that referenced this pull request May 2, 2018
Add OBJECT command support for Jedis Cluster.

Original pull request: #227.
@mp911de mp911de force-pushed the issue/DATAREDIS-562 branch from 5448a31 to dd771f0 Compare May 3, 2018 09:34
christophstrobl and others added 4 commits May 3, 2018 15:13
We now offer support for BITFIELD via RedisConnection and RedisClusterConnection using Lettuce and Jedis.

connection.bitfield(key,
  newBitfieldCommand()
   .set(INT_8).valueAt(offset(0).multipliedByTypeLength()).to(100)
   .incr(signed(8)).valueAt(offset(102)).overflow(FAIL).by(1));
Move BitfieldCommand to top-level type BitFieldSubCommands.
Use primitives in command objects. Add toString methods. Add utility methods to extract responses from Jedis Client. Use Connection.execute(…) to invoke BITFIELD using Jedis. Fix Overflow values to string rendering.
Convert test ticket references to new format.
@mp911de mp911de force-pushed the issue/DATAREDIS-562 branch from dd771f0 to 9404bda Compare May 3, 2018 13:13
mp911de pushed a commit that referenced this pull request May 3, 2018
We now offer support for BITFIELD via RedisConnection and RedisClusterConnection using Lettuce and Jedis.

connection.bitField(key,
  create()
   .set(INT_8).valueAt(offset(0).multipliedByTypeLength()).to(100)
   .incr(signed(8)).valueAt(offset(102)).overflow(FAIL).by(1));

Original pull request: #227.
mp911de added a commit that referenced this pull request May 3, 2018
Move BitfieldCommand to top-level type BitFieldSubCommands.
Use primitives in command objects. Add toString methods. Add utility methods to extract responses from Jedis Client. Use Connection.execute(…) to invoke BITFIELD using Jedis. Fix Overflow values to string rendering.
Convert test ticket references to new format.

Original pull request: #227.
mp911de added a commit that referenced this pull request May 3, 2018
@mp911de
Copy link
Member

mp911de commented May 3, 2018

That's merged and polished now.

@mp911de mp911de closed this May 3, 2018
@mp911de mp911de deleted the issue/DATAREDIS-562 branch May 3, 2018 13:32
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