jdeppe-pivotal commented on a change in pull request #6605:
URL: https://github.com/apache/geode/pull/6605#discussion_r660226513
##########
File path:
geode-apis-compatible-with-redis/src/main/java/org/apache/geode/redis/internal/data/AbstractRedisData.java
##########
@@ -207,6 +212,22 @@ protected void clearDelta() {
this.deltaInfo = null;
}
+ @Override
+ public byte[] dump() throws IOException {
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ DataSerializer.writeObject(this, new DataOutputStream(baos));
Review comment:
That's pretty much it. The redis object types are defined here:
https://github.com/redis/redis/blob/4fa3e23092d642f0c67116d9f7616f4f1173a1cf/src/rdb.h#L75-L93.
For redis, the first byte of the object dump will be one of these values.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]