// No data in redis. Punt to the persistant oplog.
result =
new JsonObject().putNumber(Key.VERSION, null).putArray(Key.OPS, new JsonArray());
} else {
// Version of the document is at the end of the results list.
List<?> list = value.toList();
Long docVersion = (Long) list.remove(list.size() - 1);
@SuppressWarnings("unchecked")
JsonArray ops = processRedisOps(docVersion, (List<String>) list);
result = new JsonObject().putNumber(Key.VERSION, docVersion).putArray(Key.OPS, ops);
}