-
Notifications
You must be signed in to change notification settings - Fork 992
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
139 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @author <a href="mailto:[email protected]">Mark Paluch</a> | ||
* @since 3.3 | ||
*/ | ||
public class ByteArrayCodec extends RedisCodec<byte[], byte[]> { | ||
public class ByteArrayCodec implements RedisCodec<byte[], byte[]> { | ||
|
||
@Override | ||
public byte[] decodeKey(ByteBuffer bytes) { | ||
|
@@ -21,13 +21,13 @@ public byte[] decodeValue(ByteBuffer bytes) { | |
} | ||
|
||
@Override | ||
public byte[] encodeKey(byte[] key) { | ||
return key; | ||
public ByteBuffer encodeKey(byte[] key) { | ||
return ByteBuffer.wrap(key); | ||
} | ||
|
||
@Override | ||
public byte[] encodeValue(byte[] value) { | ||
return value; | ||
public ByteBuffer encodeValue(byte[] value) { | ||
return ByteBuffer.wrap(value); | ||
} | ||
|
||
private static byte[] getBytes(ByteBuffer buffer) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.