Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions src/main/java/io/vertx/redis/client/Response.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,50 @@ default Set<String> getKeys() {
throw new UnsupportedOperationException("This type doesn't hold a Map type");
}

/**
* Get this Multi response value at a binary key.
* <p>
* This is a variant of {@link #get(String)} that accepts binary keys. Use
* this method when the map contains binary keys that may not be interpreted
* as valid UTF-8 chars. For example, redis HASH with binary field names
* like UUIDs, IPs in binary form, hashes of some data, etc.
*
* @param binKey the required key.
* @return Response value.
*/
default Response get(Buffer binKey) {
throw new UnsupportedOperationException("This type doesn't hold a Map type");
}

/**
* Check if this Multi response contains a binary key.
* <p>
* This is a variant of {@link #containsKey(String)} that accepts binary keys.
* Use this method when the map contains binary keys that may not be
* interpreted as valid UTF-8 chars. For example, redis HASH with binary
* field names like UUIDs, IPs in binary form, hashes of some data, etc.
*
* @param binKey the required key.
* @return whether the response contains the key.
*/
default boolean containsKey(Buffer binKey) {
throw new UnsupportedOperationException("This type doesn't hold a Map type");
}

/**
* Get binary keys of this multi response.
* <p>
* This is a variant of {@link #getKeys()} that returns binary keys. Use this
* method when the map contains binary keys that may not be interpreted as
* valid UTF-8 chars. For example, redis HASH with binary field names like
* UUIDs, IPs in binary form, hashes of some data, etc.
*
* @return the set of binary keys.
*/
default Set<Buffer> getBinaryKeys() {
throw new UnsupportedOperationException("This type doesn't hold a Map type");
}

/**
* Get this size of this multi response.
*
Expand Down
Loading